# WeeklyMonthlyRevenueEmailConfigDTO.java

    package cloud.wconnect.rateshop.pojo.dto.weeklymonthlyrevenue;

    import jakarta.validation.Valid;
    import jakarta.validation.constraints.NotNull;
    import lombok.AllArgsConstructor;
    import lombok.Builder;
    import lombok.Data;
    import lombok.NoArgsConstructor;
    import org.hibernate.validator.constraints.Length;

    import java.util.List;

    /**
     * DTO类：邮件配置
     *
     * @author zc
     * @date 2023/5/15
     */
    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public class WeeklyMonthlyRevenueEmailConfigDTO {

        /**
         * id
         */
        private Integer id;

        /**
         * 邮件类型
         */
        @NotNull(message = "The type cannot be null")
        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<WeeklyMonthlyRevenueEmailTargetDTO> toList;

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

    }