# DbEmailConfigDTO.java

    package cloud.wconnect.workperformance.pojo.dto.database.notification;

    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 2025/12/01
     */
    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public class DbEmailConfigDTO {

        /**
         * 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<DbEmailTargetDTO> toList;

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

    }