# HkEfficiencyEmailConfigDTO.java

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

    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 2023/3/24
     */
    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public class HkEfficiencyEmailConfigDTO {

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

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

    }