# OooRoomBO.java

    package cloud.wconnect.frontoffice.pojo.bo.oooroom;

    import lombok.Data;

    import jakarta.validation.constraints.NotBlank;
    import jakarta.validation.constraints.NotEmpty;
    import jakarta.validation.constraints.NotNull;
    import jakarta.validation.constraints.Pattern;
    import java.util.List;

    /**
     * BO: OOO Room
     *
     * @author yyt
     * 2023/8/7
     */
    @Data
    public class OooRoomBO {

        /**
         * 指定日期，格式（2023-07-01）
         */
        @NotBlank(message = "the date must not be blank")
        @Pattern(regexp = "^\\d{4}-\\d{2}-\\d{2}$", message = "The date format is incorrect, right format is [yyyy-MM-dd]")
        private String date;

        /**
         * 操作人 id（0表示系统）
         */
        @NotNull(message = "the operator must not be null")
        private Integer operator;

        /**
         * ooo 数据
         */
        @NotEmpty(message = "the list must not be empty")
        private List<OutOfOrderBO> list;

    }