【功能完善】IOT: ThingModel 服务和事件
This commit is contained in:
parent
38796cc4d4
commit
1f9af15e71
|
@ -24,6 +24,7 @@ public class ThingModelEvent {
|
|||
/**
|
||||
* 事件描述
|
||||
*/
|
||||
// TODO @puhui999: 考虑移除
|
||||
private String description;
|
||||
/**
|
||||
* 是否是标准品类的必选事件。
|
||||
|
|
|
@ -7,7 +7,7 @@ import lombok.Data;
|
|||
import java.util.List;
|
||||
|
||||
/**
|
||||
* IOT 产品物模型中的服务、事件的输入输出参数
|
||||
* IOT 产品物模型中的参数 // TODO @puhui999 考虑要不改成 ThingModelParam ?
|
||||
*
|
||||
* @author HUIHUI
|
||||
*/
|
||||
|
@ -25,6 +25,7 @@ public class ThingModelInputOutputParam {
|
|||
/**
|
||||
* 参数描述
|
||||
*/
|
||||
// TODO @puhui999: 考虑移除
|
||||
private String description;
|
||||
/**
|
||||
* 用于区分输入或输出参数
|
||||
|
|
|
@ -27,6 +27,7 @@ public class ThingModelProperty {
|
|||
/**
|
||||
* 属性描述
|
||||
*/
|
||||
// TODO @puhui999: 考虑移除
|
||||
private String description;
|
||||
/**
|
||||
* 云端可以对该属性进行的操作类型
|
||||
|
|
|
@ -24,6 +24,7 @@ public class ThingModelService {
|
|||
/**
|
||||
* 服务描述
|
||||
*/
|
||||
// TODO @puhui999: 考虑移除
|
||||
private String description;
|
||||
/**
|
||||
* 是否是标准品类的必选服务。
|
||||
|
|
|
@ -70,6 +70,7 @@ public class IotProductThingModelServiceImpl implements IotProductThingModelServ
|
|||
if (Objects.equals(createReqVO.getType(), IotProductThingModelTypeEnum.PROPERTY.getType())) {
|
||||
createDefaultEventsAndServices(createReqVO.getProductId(), createReqVO.getProductKey());
|
||||
}
|
||||
// TODO @puhui999: 服务和事件的情况 method 怎么设置?在前端设置还是后端设置?
|
||||
return thingModel.getId();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue