# CompRoomNotifyRuleDTO.java

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

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

    import jakarta.validation.constraints.NotEmpty;
    import jakarta.validation.constraints.Size;
    import java.util.List;

    /**
     * 免费房通知DTO
     *
     * @author lichen
     * @date 2024/6/11
     */
    @Data
    public class CompRoomNotifyRuleDTO {

        /**
         * 通知规则json字符串
         */
        @NotEmpty(message = "The rules cannot be empty")
        @Size(min = 1, max = 4, message = "The rules size must between in [1-4]")
        private List<@Range(min = 1, max = 4, message = "The rules must between in [1:pending 2:approving 3:approved 4:rejected]") Integer> rules;

    }