|
|
@@ -1,7 +1,8 @@
|
|
|
package cn.iocoder.yudao.module.iot.controller.admin.product.vo.product;
|
|
|
|
|
|
import cn.iocoder.yudao.framework.common.validation.InEnum;
|
|
|
-import cn.iocoder.yudao.module.iot.enums.product.*;
|
|
|
+import cn.iocoder.yudao.module.iot.enums.product.IotNetTypeEnum;
|
|
|
+import cn.iocoder.yudao.module.iot.enums.product.IotProductDeviceTypeEnum;
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
import jakarta.validation.constraints.NotEmpty;
|
|
|
import jakarta.validation.constraints.NotNull;
|
|
|
@@ -43,18 +44,8 @@ public class IotProductSaveReqVO {
|
|
|
@InEnum(value = IotNetTypeEnum.class, message = "联网方式必须是 {value}")
|
|
|
private Integer netType;
|
|
|
|
|
|
- @Schema(description = "接入网关协议", requiredMode = Schema.RequiredMode.REQUIRED, example = "0")
|
|
|
- @InEnum(value = IotProtocolTypeEnum.class, message = "接入网关协议必须是 {value}")
|
|
|
- private Integer protocolType;
|
|
|
-
|
|
|
- @Schema(description = "数据格式", requiredMode = Schema.RequiredMode.REQUIRED, example = "0")
|
|
|
- @InEnum(value = IotDataFormatEnum.class, message = "数据格式必须是 {value}")
|
|
|
- @NotNull(message = "数据格式不能为空")
|
|
|
- private Integer dataFormat;
|
|
|
-
|
|
|
- @Schema(description = "数据校验级别", requiredMode = Schema.RequiredMode.REQUIRED, example = "0")
|
|
|
- @InEnum(value = IotValidateTypeEnum.class, message = "数据校验级别必须是 {value}")
|
|
|
- @NotNull(message = "数据校验级别不能为空")
|
|
|
- private Integer validateType;
|
|
|
+ @Schema(description = "数据格式", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
|
|
|
+ @NotEmpty(message = "数据格式不能为空")
|
|
|
+ private String codecType;
|
|
|
|
|
|
}
|