# CardDataBO.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.Pattern;

    /**
     * BO: Card Data
     *
     * @author yyt
     * 2023/7/27
     */
    @Data
    public class CardDataBO {

        /**
         * 客户姓名
         */
        @NotBlank(message = "the customer must not be blank")
        @Length(max = 60, message = "the customer max length is 60")
        private String customer;

        /**
         * 卡号
         */
        @NotBlank(message = "the cardNumber must not be blank")
        @Length(max = 60, message = "the cardNumber max length is 60")
        private String cardNumber;

        /**
         * 入住日期，格式（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;

        /**
         * 房间号
         */
        @NotBlank(message = "the roomNumber must not be blank")
        @Length(max = 4, message = "the roomNumber max length is 4")
        private String roomNumber;

    }