package com.storlead.mail.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.multipart.MultipartFile;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @program: sp-sales-platform
 * @description:
 * @author: chenkq
 * @create: 2024-06-03 16:30
 */
@Data
public class SendMailDTO {

    @ApiModelProperty(value = "主键")
    private Long id;


    @ApiModelProperty(value = "收件人")
    private List<String> recipientls;

    @ApiModelProperty(value = "主题")
    private String subject;

    @ApiModelProperty(value = "邮件内容")
    private String content;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "抄送人")
    private List<String> recipientCcls;

    @ApiModelProperty(value = "密送人")
    private List<String> recipientBccls;

    @ApiModelProperty(value = "回复的邮件ID")
    private Long replyMsgId;

    @ApiModelProperty(value = "附件")
    private List<Long> fileIds;

    @ApiModelProperty(value = "旧附件")
    private List<Long> oldfileIds;

    @ApiModelProperty(value = "是否需要回执：0： 默认不需要,1：需要")
    private Integer isReceipt;

    @ApiModelProperty(value = "是否需要跟踪，默认0：不需要，1 需要")
    private Integer isTrack;

    @ApiModelProperty(value = "是否需要阅读提醒，默认0：不需要，1 需要")
    private Integer readRemind;

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm")
    @ApiModelProperty(value = "定时发送时间")
    private LocalDateTime delaySendTime;
}
