# CompRoomApproveLevelDTO.java

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

    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;

    /**
     * comp room审批级别dto
     *
     * @author lichen
     * @date 2023/8/19
     */
    @Data
    public class CompRoomApproveLevelDTO {

        /**
         * 主键id
         */
        @NotNull(message = "The id cannot be null")
        private Integer id;
        /**
         * 资产id
         */
        @Null(message = "The propertyId must be null")
        private Integer propertyId;
        /**
         * 审批层级索引
         */
        @Null(message = "The approveIndex must be null")
        private Integer approveIndex;
        /**
         * 审批规则（0:任一，1:全部）
         */
        @NotNull(message = "The rule can not be null")
        @Range(min = 0 , max = 1, message = "The index must be 0 or 1")
        private Integer rule;
        /**
         * 描述
         */
        private String description;
        /**
         * 审批人
         */
        @Valid
        @NotEmpty(message = "The users cannot be empty")
        private List<CompRoomApproveUserDTO> users;

        /**
         * 抄送人集合
         */
        @Valid
        private List<CompRoomApproveCCDTO> ccList;

    }