eight
2024-09-18 85bddd0461e8aeaa7e75d5aef842915c524577dd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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;
 
}