# ScheduleEmailConfigTargetDTO.java

    package cloud.wconnect.workperformance.pojo.dto.schedule;

    import cloud.wconnect.commonlib.pojo.dto.group.Edition;
    import cloud.wconnect.workperformance.pojo.group.Addition;
    import lombok.Data;
    import org.hibernate.validator.constraints.Length;
    import org.hibernate.validator.constraints.Range;

    import jakarta.validation.constraints.NotNull;

    /**
     * DTO: Schedule Email Config Target
     *
     * @author yyt
     * 2023/3/22
     */
    @Data
    public class ScheduleEmailConfigTargetDTO {

        /**
         * 来源1：user 2: manual 3:user group
         */
        @NotNull(message = "the source must not be null", groups = {Addition.class, Edition.class})
        @Range(min = 1, max = 3, message = "the source must in [1:user 2:manual 3:user group]", groups = {Addition.class, Edition.class})
        private Integer source;

        /**
         * id
         */
        @NotNull(message = "the identityId must not be null", groups = {Addition.class, Edition.class})
        private Integer identityId;

        /**
         * 用户名称
         */
        @Length(max = 60, message = "the identityName max length is 60", groups = {Addition.class, Edition.class})
        private String identityName;

        /**
         * 邮箱
         */
        @NotNull(message = "the email must not be null", groups = {Addition.class, Edition.class})
        @Length(max = 60, message = "the email max length is 60", groups = {Addition.class, Edition.class})
        private String email;

    }