# BgApproveCCDTO.java

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

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

    import jakarta.validation.constraints.NotNull;

    /**
     * 黑名单功能抄送人 DTO
     *
     * @author lichen
     * @date 2024/3/11
     */
    @Data
    public class BgApproveCCDTO {

        /**
         * 用户来源1：user 2:manual 3:usergroup
         */
        @NotNull(message = "the source must not be null")
        @Range(min = 1, max = 3, message = "the source must in [1:user 2:manual 3:usergroup]")
        private Integer source;

        /**
         * 身份id
         */
        @NotNull(message = "the identityId must not be null")
        private Integer identityId;

        /**
         * 身份名称
         */
        @Length(max = 60, message = "the identityName max length is 60")
        private String identityName;

        /**
         * 邮箱
         */
        @Length(max = 60, message = "the email max length is 60")
        private String email;

    }