【功能完善】IOT: ThingModel 服务和事件
This commit is contained in:
parent
f4e9a586e3
commit
38796cc4d4
|
@ -37,7 +37,7 @@ public class ThingModelEvent {
|
||||||
*
|
*
|
||||||
* 关联枚举 {@link IotProductThingModelServiceEventTypeEnum}
|
* 关联枚举 {@link IotProductThingModelServiceEventTypeEnum}
|
||||||
*/
|
*/
|
||||||
private String eventType;
|
private String type;
|
||||||
/**
|
/**
|
||||||
* 事件的输出参数
|
* 事件的输出参数
|
||||||
*
|
*
|
||||||
|
|
|
@ -286,7 +286,7 @@ public class IotProductThingModelServiceImpl implements IotProductThingModelServ
|
||||||
|
|
||||||
// 1.2 生成属性上报事件
|
// 1.2 生成属性上报事件
|
||||||
return new ThingModelEvent().setIdentifier("post").setName("属性上报").setDescription("属性上报事件")
|
return new ThingModelEvent().setIdentifier("post").setName("属性上报").setDescription("属性上报事件")
|
||||||
.setEventType(IotProductThingModelServiceEventTypeEnum.INFO.getType()).setMethod("thing.event.property.post")
|
.setType(IotProductThingModelServiceEventTypeEnum.INFO.getType()).setMethod("thing.event.property.post")
|
||||||
.setOutputParams(buildInputOutputParam(thingModelList, IotProductThingModelParamDirectionEnum.OUTPUT));
|
.setOutputParams(buildInputOutputParam(thingModelList, IotProductThingModelParamDirectionEnum.OUTPUT));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue