# AdjEmailConfigDTO.java

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

    import lombok.*;
    import lombok.experimental.Accessors;
    import org.hibernate.validator.constraints.Length;
    import org.hibernate.validator.constraints.Range;

    import jakarta.validation.Valid;
    import jakarta.validation.constraints.NotNull;
    import java.io.Serializable;
    import java.util.List;

    /**
     * @author lichen
     * @description 邮件配置 DTO
     */
    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    @EqualsAndHashCode(callSuper = false)
    @Accessors(chain = true)
    public class AdjEmailConfigDTO implements Serializable {

        private static final long serialVersionUID = 1L;

        /**
         * 主键id
         */
        @NotNull(message = "The id cannot be null")
        private Integer id;

        /**
         * 邮件前缀
         */
        @NotNull(message = "The subject cannot be null")
        @Length(max = 200, message = "The subject length is 200 chars.")
        private String subject;

        /**
         * 资产id
         */
        private Integer propertyId;
        /**
         * 邮件配置类型
         */
        @NotNull(message = "The type cannot be null")
        @Range(min = 1,max = 9 ,message = "The type must between in " +
                "[1:Draft number notify " +
                "2:Sales Approveing Count " +
                "3:Report Missed " +
                "4:Draft number summary notify " +
                "5:Approved notify " +
                "6:Sales Approval notify " +
                "7:Front Desk Approval notify " +
                "8:Accounting Approval notify" +
                "9:Approval personnel disable notification]")
        private Integer type;
        /**
         * 收件人集合
         */
        @Valid
        private List<AdjEmailTargetDTO> toList;
        /**
         * 抄送人集合
         */
        @Valid
        private List<AdjEmailTargetDTO> ccList;

        /**
         * 状态
         */
        @NotNull(message = "The status cannot be null")
        private Boolean status;

        /**
         * 默认主题
         */
        private String defaultSubject;

    }