Procházet zdrojové kódy

fix(iot): 修复注释和枚举描述中的错误

- IotDeviceMessage/IotDeviceMessageDO/IotDeviceMessageRespVO: thing.property.report→thing.property.post
- IotDeviceMessageMethodEnum: OTA 固定信息推送→OTA 固件信息推送
YunaiV před 3 měsíci
rodič
revize
cc9cca82cb

+ 1 - 1
yudao-module-iot/yudao-module-iot-biz/src/main/java/cn/iocoder/yudao/module/iot/controller/admin/device/vo/message/IotDeviceMessageRespVO.java

@@ -38,7 +38,7 @@ public class IotDeviceMessageRespVO {
     @Schema(description = "请求编号", example = "req_123")
     private String requestId;
 
-    @Schema(description = "请求方法", requiredMode = Schema.RequiredMode.REQUIRED, example = "thing.property.report")
+    @Schema(description = "请求方法", requiredMode = Schema.RequiredMode.REQUIRED, example = "thing.property.post")
     private String method;
 
     @Schema(description = "请求参数")

+ 1 - 1
yudao-module-iot/yudao-module-iot-biz/src/main/java/cn/iocoder/yudao/module/iot/dal/dataobject/device/IotDeviceMessageDO.java

@@ -84,7 +84,7 @@ public class IotDeviceMessageDO {
      * 请求方法
      *
      * 枚举 {@link IotDeviceMessageMethodEnum}
-     * 例如说:thing.property.report 属性上报
+     * 例如说:thing.property.post 属性上报
      */
     private String method;
     /**

+ 1 - 1
yudao-module-iot/yudao-module-iot-core/src/main/java/cn/iocoder/yudao/module/iot/core/enums/IotDeviceMessageMethodEnum.java

@@ -64,7 +64,7 @@ public enum IotDeviceMessageMethodEnum implements ArrayValuable<String> {
     // ========== OTA 固件 ==========
     // 可参考:https://help.aliyun.com/zh/iot/user-guide/perform-ota-updates
 
-    OTA_UPGRADE("thing.ota.upgrade", "OTA 固信息推送", false),
+    OTA_UPGRADE("thing.ota.upgrade", "OTA 固信息推送", false),
     OTA_PROGRESS("thing.ota.progress", "OTA 升级进度上报", true),
 
     ;

+ 1 - 1
yudao-module-iot/yudao-module-iot-core/src/main/java/cn/iocoder/yudao/module/iot/core/mq/message/IotDeviceMessage.java

@@ -72,7 +72,7 @@ public class IotDeviceMessage {
      * 请求方法
      *
      * 枚举 {@link IotDeviceMessageMethodEnum}
-     * 例如说:thing.property.report 属性上报
+     * 例如说:thing.property.post 属性上报
      */
     private String method;
     /**