# CbCaseCCDTO.java

    package cloud.wconnect.finance.pojo.dto.chargeback;

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

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

    /**
     * DTO: Cb Case CC
     *
     * @author yyt
     * 2024/3/12
     */
    @Data
    public class CbCaseCCDTO {

        /**
         * 1:user 2:手动输入邮箱 3:w-connect用户组
         */
        @NotNull(message = "the source must not be null")
        @Range(min = 1, max = 3, message = "the source must in [1:user 2:manual 3:user group]")
        private Integer source;

        /**
         * 身份ID。用户ID或用户组ID
         */
        @NotNull(message = "the identityId must not be null")
        private Integer identityId;

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

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

    }