Commit 1f9af15e7163c754c1a17386e15654ca7cde0d5f

Authored by puhui999
1 parent 38796cc4

【功能完善】IOT: ThingModel 服务和事件

yudao-module-iot/yudao-module-iot-biz/src/main/java/cn/iocoder/yudao/module/iot/controller/admin/thingmodel/model/ThingModelEvent.java
@@ -24,6 +24,7 @@ public class ThingModelEvent { @@ -24,6 +24,7 @@ public class ThingModelEvent {
24 /** 24 /**
25 * 事件描述 25 * 事件描述
26 */ 26 */
  27 + // TODO @puhui999: 考虑移除
27 private String description; 28 private String description;
28 /** 29 /**
29 * 是否是标准品类的必选事件。 30 * 是否是标准品类的必选事件。
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
@@ -27,6 +27,7 @@ public class ThingModelProperty { @@ -27,6 +27,7 @@ public class ThingModelProperty {
27 /** 27 /**
28 * 属性描述 28 * 属性描述
29 */ 29 */
  30 + // TODO @puhui999: 考虑移除
30 private String description; 31 private String description;
31 /** 32 /**
32 * 云端可以对该属性进行的操作类型 33 * 云端可以对该属性进行的操作类型
yudao-module-iot/yudao-module-iot-biz/src/main/java/cn/iocoder/yudao/module/iot/controller/admin/thingmodel/model/ThingModelService.java
@@ -24,6 +24,7 @@ public class ThingModelService { @@ -24,6 +24,7 @@ public class ThingModelService {
24 /** 24 /**
25 * 服务描述 25 * 服务描述
26 */ 26 */
  27 + // TODO @puhui999: 考虑移除
27 private String description; 28 private String description;
28 /** 29 /**
29 * 是否是标准品类的必选服务。 30 * 是否是标准品类的必选服务。
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