# LogbookNotificationTargetDTO.java

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

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

    import jakarta.validation.constraints.NotNull;

    /**
     * DTO: Logbook Notification Target
     *
     * @author yyt
     * 2023/3/22
     */
    @Data
    public class LogbookNotificationTargetDTO {

        /**
         * 目标类型(1:To,2:CC)
         */
        @NotNull(message = "the targetType must not be null")
        @Range(min = 1, max = 2, message = "the targetType must in [1:To 2:CC]")
        private Integer targetType;

        /**
         * 来源1：w-connect 2: manual 3:user group
         */
        @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
         */
        @NotNull(message = "the identityId must not be null")
        private Integer identityId;

        /**
         * 名称
         */
        @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;

    }