# FdProcedureCheckEmailConfigDTO.java

    package cloud.wconnect.workperformance.pojo.dto.fdprocedurecheck;

    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/10/17
     */
    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public class FdProcedureCheckEmailConfigDTO {

        /**
         * id
         */
        private Integer id;

        /**
         * 邮件类型（1：数据待处理）
         */
        @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<FdProcedureCheckEmailTargetDTO> toList;

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

    }