# WalkRoomApproveLevelDTO.java

    package cloud.wconnect.frontoffice.pojo.dto.walkroomrequest;

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

    import jakarta.validation.Valid;
    import jakarta.validation.constraints.NotEmpty;
    import jakarta.validation.constraints.NotNull;
    import jakarta.validation.constraints.Null;
    import java.util.List;

    /**
     * 审批级别dto
     *
     * @author lichen
     * @date 2023/7/11
     */
    @Data
    public class WalkRoomApproveLevelDTO {

        /**
         * 审批级别主键id
         */
        @NotNull(message = "The id cannot be null")
        private Long id;
        /**
         * 资产id
         */
        @Null(message = "The propertyId must be null")
        private Integer propertyId;

        /**
         * 审批层级索引
         */
        @Null(message = "The index must be null")
        private Integer approveIndex;

        /**
         * 类型1:Sent 2:Receive
         */
        @NotNull(message = "The type cannot be null")
        @Range(min = 1 , max = 2, message = "The type must be 1:Sent 2:Receive")
        private Integer type;

        /**
         * 审批规则（0:任一，1:全部）
         */
        @NotNull(message = "The rule cannot be null")
        @Range(min = 0 , max = 1, message = "The rule must be 0:any or 1:all")
        private Integer rule;
        /**
         * 描述
         */
        private String description;
        /**
         * 审批级别上的人员信息
         */
        @Valid
        @NotEmpty(message = "The users cannot be empty")
        private List<WalkRoomApproveUserDTO> users;

        /**
         * 抄送人
         */
        @Valid
        private List<WalkRoomApproveCCDTO> ccList;

    }