# SalesEmailConfigDTO.java

    package cloud.wconnect.workperformance.pojo.dto.mor.sales;

    import lombok.AllArgsConstructor;
    import lombok.Builder;
    import lombok.Data;
    import lombok.NoArgsConstructor;
    import org.hibernate.validator.constraints.Length;
    import org.hibernate.validator.constraints.Range;

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

    /**
     * DTO类：邮件配置
     *
     * @author zc
     * @date 2024/6/1
     */
    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public class SalesEmailConfigDTO {

        /**
         * id
         */
        private Integer id;

        /**
         * 邮件类型
         */
        @NotNull(message="The type cannot be null.")
        @Range(min = 4, max = 4, message = "The type must be in [4:Operating statistics daily].")
        private Integer type;

        /**
         * 主题
         */
        @NotNull(message = "The subject cannot be null")
        @Length(max = 200, message = "The subject is limited 200 characters")
        private String subject;

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

        /**
         * 状态（false：关闭，true：开启）
         */
        @NotNull(message = "The status cannot be null")
        private Boolean status;

        /**
         * 收件人集合
         */
        @Valid
        private List<SalesEmailTargetDTO> toList;

        /**
         * 抄送人集合
         */
        @Valid
        private List<SalesEmailTargetDTO> ccList;

    }