Commit 38796cc4d4aa0c6e485c861c4cdff0792890c6e8

Authored by puhui999
1 parent f4e9a586

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

yudao-module-iot/yudao-module-iot-biz/src/main/java/cn/iocoder/yudao/module/iot/controller/admin/thingmodel/model/ThingModelEvent.java
@@ -37,7 +37,7 @@ public class ThingModelEvent { @@ -37,7 +37,7 @@ public class ThingModelEvent {
37 * 37 *
38 * 关联枚举 {@link IotProductThingModelServiceEventTypeEnum} 38 * 关联枚举 {@link IotProductThingModelServiceEventTypeEnum}
39 */ 39 */
40 - private String eventType; 40 + private String type;
41 /** 41 /**
42 * 事件的输出参数 42 * 事件的输出参数
43 * 43 *
yudao-module-iot/yudao-module-iot-biz/src/main/java/cn/iocoder/yudao/module/iot/service/thingmodel/IotProductThingModelServiceImpl.java
@@ -286,7 +286,7 @@ public class IotProductThingModelServiceImpl implements IotProductThingModelServ @@ -286,7 +286,7 @@ public class IotProductThingModelServiceImpl implements IotProductThingModelServ
286 286
287 // 1.2 生成属性上报事件 287 // 1.2 生成属性上报事件
288 return new ThingModelEvent().setIdentifier("post").setName("属性上报").setDescription("属性上报事件") 288 return new ThingModelEvent().setIdentifier("post").setName("属性上报").setDescription("属性上报事件")
289 - .setEventType(IotProductThingModelServiceEventTypeEnum.INFO.getType()).setMethod("thing.event.property.post") 289 + .setType(IotProductThingModelServiceEventTypeEnum.INFO.getType()).setMethod("thing.event.property.post")
290 .setOutputParams(buildInputOutputParam(thingModelList, IotProductThingModelParamDirectionEnum.OUTPUT)); 290 .setOutputParams(buildInputOutputParam(thingModelList, IotProductThingModelParamDirectionEnum.OUTPUT));
291 } 291 }
292 292