Pārlūkot izejas kodu

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

puhui999 7 mēneši atpakaļ
vecāks
revīzija
38796cc4d4

+ 1 - 1
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 {
      *
      * 关联枚举 {@link IotProductThingModelServiceEventTypeEnum}
      */
-    private String eventType;
+    private String type;
     /**
      * 事件的输出参数
      *

+ 1 - 1
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
 
         // 1.2 生成属性上报事件
         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));
     }