# CompanionDTO.java

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

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

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

    /**
     * DTO类: 加载黑名单中的Companions信息
     */
    @Data
    public class CompanionDTO {

        private Long id;

        private Integer propertyId;

        /**
         * 关联黑名单id
         */
        private Long badGuestId;

        @NotBlank(message = "The firstName cannot be blank")
        @Length(max = 60, message = "the lastName max length is 60")
        private String firstName;

        @NotBlank(message = "The lastName cannot be blank")
        @Length(max = 60, message = "the lastName max length is 60")
        private String lastName;

        /**
         * 是否为Primary Guest？
         */
        @NotNull(message = "The isPrimary cannot be null")
        private Boolean isPrimary;
        /**
         * 电话
         */
        @NotBlank(message = "The phone cannot be blank")
        private String phone;
        /**
         * 住址
         */
        @NotBlank(message = "The address cannot be blank")
        private String address;
        /**
         * 会员卡号
         */
        @NotBlank(message = "The memberCardNum cannot be blank")
        private String memberCardNum;
        /**
         * 邮箱
         */
        @NotBlank(message = "The email cannot be blank")
        private String email;

    }