Commit 1f9af15e7163c754c1a17386e15654ca7cde0d5f
1 parent
38796cc4
【功能完善】IOT: ThingModel 服务和事件
Showing
5 changed files
with
6 additions
and
1 deletions
yudao-module-iot/yudao-module-iot-biz/src/main/java/cn/iocoder/yudao/module/iot/controller/admin/thingmodel/model/ThingModelEvent.java
yudao-module-iot/yudao-module-iot-biz/src/main/java/cn/iocoder/yudao/module/iot/controller/admin/thingmodel/model/ThingModelInputOutputParam.java
| @@ -7,7 +7,7 @@ import lombok.Data; | @@ -7,7 +7,7 @@ import lombok.Data; | ||
| 7 | import java.util.List; | 7 | import java.util.List; |
| 8 | 8 | ||
| 9 | /** | 9 | /** |
| 10 | - * IOT 产品物模型中的服务、事件的输入输出参数 | 10 | + * IOT 产品物模型中的参数 // TODO @puhui999 考虑要不改成 ThingModelParam ? |
| 11 | * | 11 | * |
| 12 | * @author HUIHUI | 12 | * @author HUIHUI |
| 13 | */ | 13 | */ |
| @@ -25,6 +25,7 @@ public class ThingModelInputOutputParam { | @@ -25,6 +25,7 @@ public class ThingModelInputOutputParam { | ||
| 25 | /** | 25 | /** |
| 26 | * 参数描述 | 26 | * 参数描述 |
| 27 | */ | 27 | */ |
| 28 | + // TODO @puhui999: 考虑移除 | ||
| 28 | private String description; | 29 | private String description; |
| 29 | /** | 30 | /** |
| 30 | * 用于区分输入或输出参数 | 31 | * 用于区分输入或输出参数 |
yudao-module-iot/yudao-module-iot-biz/src/main/java/cn/iocoder/yudao/module/iot/controller/admin/thingmodel/model/ThingModelProperty.java
yudao-module-iot/yudao-module-iot-biz/src/main/java/cn/iocoder/yudao/module/iot/controller/admin/thingmodel/model/ThingModelService.java
yudao-module-iot/yudao-module-iot-biz/src/main/java/cn/iocoder/yudao/module/iot/service/thingmodel/IotProductThingModelServiceImpl.java
| @@ -70,6 +70,7 @@ public class IotProductThingModelServiceImpl implements IotProductThingModelServ | @@ -70,6 +70,7 @@ public class IotProductThingModelServiceImpl implements IotProductThingModelServ | ||
| 70 | if (Objects.equals(createReqVO.getType(), IotProductThingModelTypeEnum.PROPERTY.getType())) { | 70 | if (Objects.equals(createReqVO.getType(), IotProductThingModelTypeEnum.PROPERTY.getType())) { |
| 71 | createDefaultEventsAndServices(createReqVO.getProductId(), createReqVO.getProductKey()); | 71 | createDefaultEventsAndServices(createReqVO.getProductId(), createReqVO.getProductKey()); |
| 72 | } | 72 | } |
| 73 | + // TODO @puhui999: 服务和事件的情况 method 怎么设置?在前端设置还是后端设置? | ||
| 73 | return thingModel.getId(); | 74 | return thingModel.getId(); |
| 74 | } | 75 | } |
| 75 | 76 |