package cn.lihu.jh.module.ecg.controller.admin.devmanage.vo; import com.alibaba.excel.annotation.ExcelProperty; import io.swagger.v3.oas.annotations.media.Schema; import lombok.*; import javax.validation.constraints.NotEmpty; import java.time.LocalDate; import java.util.*; @Schema(description = "管理后台 - 设备新增/修改 Request VO") @Data public class DeviceSaveReqVO { @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "15567") private Integer id; @Schema(description = "设备编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "5317") @NotEmpty(message = "设备编号不能为空") private String devId; @Schema(description = "分类名", requiredMode = Schema.RequiredMode.REQUIRED) @NotEmpty(message = "分类名不能为空") private String category; @Schema(description = "品牌", requiredMode = Schema.RequiredMode.REQUIRED) @NotEmpty(message = "品牌不能为空") private String brand; @Schema(description = "型号", requiredMode = Schema.RequiredMode.REQUIRED) @NotEmpty(message = "型号不能为空") private String model; @Schema(description = "采购日期") private LocalDate purchaseDate; @Schema(description = "遗失标记") private Integer lost; /** * 0 - 空闲 10 - 使用中 20 - 已遗失 */ @Schema(description = "状态") private Integer state; }