# ItInventoryDTO.java

    package cloud.wconnect.it.pojo.dto.itinventory;

    import lombok.Data;
    import org.hibernate.validator.constraints.Length;
    import org.hibernate.validator.constraints.Range;

    import jakarta.validation.constraints.NotBlank;
    import jakarta.validation.constraints.NotNull;

    /**
     * DTO: It Inventory
     *
     * @author yyt
     * 2024/3/2
     */
    @Data
    public class ItInventoryDTO {

        /**
         * 数据 id
         */
        private Long id;

        /**
         * Device Name
         */
        @NotBlank(message = "the deviceName must not be blank")
        @Length(max = 255, message = "the deviceName max length is 255")
        private String deviceName;

        /**
         * User
         */
        @NotBlank(message = "the userName must not be blank")
        @Length(max = 255, message = "the userName max length is 255")
        private String userName;

        /**
         * Serial number
         */
        @Length(max = 255, message = "the serialNumber max length is 255")
        private String serialNumber;

        /**
         * OS
         */
        @NotBlank(message = "the os must not be blank")
        @Length(max = 100, message = "the os max length is 100")
        private String os;

        /**
         * Purchase Date
         */
        @NotNull(message = "the purchaseDate must not be null")
        private Long purchaseDate;

        /**
         * 状态（1:In use，2:Sealed，3:Discard）
         */
        @NotNull(message = "the status must not be null")
        @Range(min = 1, max = 3, message = "the status must in [1:In use，2:Sealed，3:Discard]")
        private Integer status;

    }