# GlcEmailConfigDTO.java

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

    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 GlcEmailConfigDTO implements Serializable {

        private static final long serialVersionUID = 1L;

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

        /**
         * 类型 1：未解决的数据
         */
        @NotNull(message = "The type cannot be null")
        @Range(min = 1, max = 1, message = "The type must be 1:waiting for resolution")
        private Integer type;

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

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

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

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

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

    }