# EosEmailConfigDTO.java

    package cloud.wconnect.frontoffice.pojo.dto.endofshift;

    import lombok.*;
    import lombok.experimental.Accessors;
    import org.hibernate.validator.constraints.Length;
    import org.hibernate.validator.constraints.Range;

    import jakarta.validation.Valid;
    import jakarta.validation.constraints.NotNull;
    import java.io.Serializable;
    import java.util.List;

    /**
     * @author lichen
     * @description 邮件配置 DTO
     * @date 2023/3/11 9:15
     */
    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    @EqualsAndHashCode(callSuper = false)
    @Accessors(chain = true)
    public class EosEmailConfigDTO implements Serializable {

        private static final long serialVersionUID = 1L;

        @NotNull(message = "The id cannot be null")
        private Integer id;

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

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

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

        /**
         * 类型 1：shift report
         */
        @NotNull(message = "The type cannot be null")
        @Range(min = 1,max = 1,message = "The type must be 1: end of shift detail")
        private Integer type;

        /**
         * 收件人集合
         */
        @Valid
        private List<EosEmailTargetDTO> toList;
        /**
         * 抄送人集合
         */
        @Valid
        private List<EosEmailTargetDTO> ccList;

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

    }