# CrewFaxBO.java

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

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

    import jakarta.validation.constraints.NotBlank;
    import jakarta.validation.constraints.NotNull;
    import jakarta.validation.constraints.Pattern;

    /**
     * BO: Crew Fax
     *
     * @author yyt
     * 2023/7/31
     */
    @Data
    public class CrewFaxBO {

        /**
         * Crew Fax Number
         */
        @NotBlank(message = "the faxNumber must not be blank")
        @Length(max = 20, message = "the faxNumber max length is 20")
        private String faxNumber;

        /**
         * Company Name
         */
        @NotBlank(message = "the companyName must not be blank")
        @Length(max = 60, message = "the companyName max length is 60")
        private String companyName;

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

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

        /**
         * 房间信息
         */
        @NotBlank(message = "the rooms must not be blank")
        @Length(max = 200, message = "the rooms max length is 200")
        private String rooms;

        /**
         * 附件，json数组字符串
         */
        @NotNull(message = "the attachments must not be null")
        @Length(max = 2000, message = "the attachments max length is 2000")
        private String attachments;

    }