# NotificationUserDTO.java

    package cloud.wconnect.rateshop.pojo.dto.rateshop.alertmessage.notify;

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

    import jakarta.validation.constraints.NotNull;

    /**
     * 警报邮件通知人
     *
     * @author lichen
     * @date 2023/6/10
     */
    @Data
    public class NotificationUserDTO {

        /**
         * 来源，1:user 2:manual 3:usergroup
         */
        @NotNull(message = "The source cannot be null")
        @Range(min = 1, max = 3, message = "The source must between in [1:user 2:manual 3:usergroup]")
        private Integer source;

        /**
         * 用户id
         */
        private Integer identityId;

        /**
         * 用户姓名
         */
        @Length(max = 60, message = "The username is limited 60 characters")
        private String identityName;

        /**
         * 邮箱
         */
        @Length(max = 60, message = "The email is limited 60 characters")
        private String email;

        /**
         * 通知用户类型
         */
        private Integer targetType;

    }