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

This commit is contained in:
puhui999 2024-12-25 18:36:22 +08:00
parent f4e9a586e3
commit 38796cc4d4
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ public class ThingModelEvent {
* *
* 关联枚举 {@link IotProductThingModelServiceEventTypeEnum} * 关联枚举 {@link IotProductThingModelServiceEventTypeEnum}
*/ */
private String eventType; private String type;
/** /**
* 事件的输出参数 * 事件的输出参数
* *

View File

@ -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));
} }