# HkInventoryEmailConfigDTO.java

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

    import jakarta.validation.Valid;
    import jakarta.validation.constraints.NotNull;
    import lombok.*;
    import lombok.experimental.Accessors;
    import org.hibernate.validator.constraints.Length;
    import org.hibernate.validator.constraints.Range;

    import java.util.List;

    /**
     * @author lichen
     * @description 邮件配置 DTO
     */
    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    @EqualsAndHashCode(callSuper = false)
    @Accessors(chain = true)
    public class HkInventoryEmailConfigDTO {

        /**
         * 主键id
         */
        @NotNull(message = "The id cannot be null")
        private Integer id;

        /**
         * 邮件主题
         */
        @NotNull(message = "The subject cannot be null")
        @Length(max = 200, message = "The subject length is 200 chars.")
        private String subject;

        /**
         * 邮件配置类型
         */
        @NotNull(message = "The type cannot be null")
        @Range(min = 1, max = 2, message = "The type must between in [1:Notify form filler 2:Notify manager]")
        private Integer type;

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

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

        /**
         * 状态
         */
        @NotNull(message = "The status cannot be null")
        private Boolean status;

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

        /**
         * 资产id
         */
        private Integer propertyId;

    }