# BadGuestApproveLevelDTO.java

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

    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;

    /**
     * @author lichen
     * @description 审批配置信息DTO
     * @date 2023/3/21 13:59
     */
    @Data
    public class BadGuestApproveLevelDTO {

        @NotNull(message = "id cannot be null")
        private Long id;
        /**
         * 资产id
         */
        @Null(message = "propertyId must be null")
        private Integer propertyId;
        /**
         * 审批层级索引
         */
        @Null(message = "approveIndex must be null")
        private Integer approveIndex;

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

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

    }