|
@@ -3,6 +3,8 @@ package cc.iotkit.manager.dto.bo.device;
|
|
|
import cc.iotkit.model.device.DeviceInfo;
|
|
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
+import io.github.linpeilie.annotations.AutoMapping;
|
|
|
+import io.github.linpeilie.annotations.ReverseAutoMapping;
|
|
|
import jakarta.validation.constraints.Size;
|
|
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
|
|
|
@@ -26,49 +28,51 @@ import lombok.EqualsAndHashCode;
|
|
|
@Data
|
|
|
@EqualsAndHashCode(callSuper = true)
|
|
|
@AutoMapper(target = DeviceInfo.class, reverseConvertGenerate = false)
|
|
|
-public class DeviceInfoBo extends BaseDto {
|
|
|
+public class DeviceInfoBo extends BaseDto {
|
|
|
|
|
|
- private static final long serialVersionUID = -1L;
|
|
|
+ private static final long serialVersionUID = -1L;
|
|
|
|
|
|
- @ApiModelProperty(value="创建时间")
|
|
|
- private Long createAt;
|
|
|
+ @ApiModelProperty(value = "创建时间")
|
|
|
+ private Long createAt;
|
|
|
|
|
|
- @ApiModelProperty(value="设备id")
|
|
|
- @Size(max = 255, message = "设备id长度不正确")
|
|
|
- private String deviceId;
|
|
|
+ @ApiModelProperty(value = "设备id")
|
|
|
+ @Size(max = 255, message = "设备id长度不正确")
|
|
|
+ private String deviceId;
|
|
|
|
|
|
- @ApiModelProperty(value="设备名称")
|
|
|
- @Size(max = 255, message = "设备名称长度不正确")
|
|
|
- private String deviceName;
|
|
|
+ @ApiModelProperty(value = "设备名称")
|
|
|
+ @Size(max = 255, message = "设备名称长度不正确")
|
|
|
+ private String deviceName;
|
|
|
|
|
|
- @ApiModelProperty(value="设备类型")
|
|
|
- @Size(max = 255, message = "设备类型长度不正确")
|
|
|
- private String model;
|
|
|
+ @ApiModelProperty(value = "设备类型")
|
|
|
+ @Size(max = 255, message = "设备类型长度不正确")
|
|
|
+ private String model;
|
|
|
|
|
|
- @ApiModelProperty(value="设备离线时间")
|
|
|
- private Long offlineTime;
|
|
|
+ @ApiModelProperty(value = "设备离线时间")
|
|
|
+ private Long offlineTime;
|
|
|
|
|
|
- @ApiModelProperty(value="设备在线时间")
|
|
|
- private Long onlineTime;
|
|
|
+ @ApiModelProperty(value = "设备在线时间")
|
|
|
+ private Long onlineTime;
|
|
|
|
|
|
- @ApiModelProperty(value="父级id")
|
|
|
- @Size(max = 255, message = "父级id长度不正确")
|
|
|
- private String parentId;
|
|
|
+ @ApiModelProperty(value = "父级id")
|
|
|
+ @Size(max = 255, message = "父级id长度不正确")
|
|
|
+ private String parentId;
|
|
|
|
|
|
- @ApiModelProperty(value="产品key")
|
|
|
- @Size(max = 255, message = "产品key长度不正确")
|
|
|
- private String productKey;
|
|
|
+ @ApiModelProperty(value = "产品key")
|
|
|
+ @Size(max = 255, message = "产品key长度不正确")
|
|
|
+ private String productKey;
|
|
|
|
|
|
- @ApiModelProperty(value="设备描述")
|
|
|
- @Size(max = 255, message = "设备描述长度不正确")
|
|
|
- private String secret;
|
|
|
+ @ApiModelProperty(value = "设备描述")
|
|
|
+ @Size(max = 255, message = "设备描述长度不正确")
|
|
|
+ private String secret;
|
|
|
|
|
|
- @ApiModelProperty(value="设备状态")
|
|
|
- @Size(max = 255, message = "设备状态长度不正确")
|
|
|
- private String state;
|
|
|
+ @ApiModelProperty(value = "设备状态")
|
|
|
+ @Size(max = 255, message = "设备状态长度不正确")
|
|
|
+ @AutoMapping(ignore = true)
|
|
|
+ @ReverseAutoMapping(ignore = true)
|
|
|
+ private String state;
|
|
|
|
|
|
- @ApiModelProperty(value="用户id")
|
|
|
- @Size(max = 255, message = "用户id长度不正确")
|
|
|
- private String uid;
|
|
|
+ @ApiModelProperty(value = "用户id")
|
|
|
+ @Size(max = 255, message = "用户id长度不正确")
|
|
|
+ private String uid;
|
|
|
|
|
|
- }
|
|
|
+}
|