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

This commit is contained in:
puhui999 2024-12-26 00:15:57 +08:00
parent 38796cc4d4
commit 1f9af15e71
5 changed files with 6 additions and 1 deletions

View File

@ -24,6 +24,7 @@ public class ThingModelEvent {
/** /**
* 事件描述 * 事件描述
*/ */
// TODO @puhui999: 考虑移除
private String description; private String description;
/** /**
* 是否是标准品类的必选事件 * 是否是标准品类的必选事件

View File

@ -7,7 +7,7 @@ import lombok.Data;
import java.util.List; import java.util.List;
/** /**
* IOT 产品物模型中的服务事件的输入输出参数 * IOT 产品物模型中的参数 // TODO @puhui999 考虑要不改成 ThingModelParam
* *
* @author HUIHUI * @author HUIHUI
*/ */
@ -25,6 +25,7 @@ public class ThingModelInputOutputParam {
/** /**
* 参数描述 * 参数描述
*/ */
// TODO @puhui999: 考虑移除
private String description; private String description;
/** /**
* 用于区分输入或输出参数 * 用于区分输入或输出参数

View File

@ -27,6 +27,7 @@ public class ThingModelProperty {
/** /**
* 属性描述 * 属性描述
*/ */
// TODO @puhui999: 考虑移除
private String description; private String description;
/** /**
* 云端可以对该属性进行的操作类型 * 云端可以对该属性进行的操作类型

View File

@ -24,6 +24,7 @@ public class ThingModelService {
/** /**
* 服务描述 * 服务描述
*/ */
// TODO @puhui999: 考虑移除
private String description; private String description;
/** /**
* 是否是标准品类的必选服务 * 是否是标准品类的必选服务

View File

@ -70,6 +70,7 @@ public class IotProductThingModelServiceImpl implements IotProductThingModelServ
if (Objects.equals(createReqVO.getType(), IotProductThingModelTypeEnum.PROPERTY.getType())) { if (Objects.equals(createReqVO.getType(), IotProductThingModelTypeEnum.PROPERTY.getType())) {
createDefaultEventsAndServices(createReqVO.getProductId(), createReqVO.getProductKey()); createDefaultEventsAndServices(createReqVO.getProductId(), createReqVO.getProductKey());
} }
// TODO @puhui999: 服务和事件的情况 method 怎么设置在前端设置还是后端设置
return thingModel.getId(); return thingModel.getId();
} }