package com.ktg.iscs.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ktg.common.annotation.Excel;
import com.ktg.common.core.domain.model.BaseBean;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 系统邮件任务对象 is_mail_send_task_item
 *
 * @author cgj
 * @date 2025-01-16
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class IsMailSendTaskItem extends BaseBean
{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id主键")
    @TableId(type = IdType.AUTO)
    private Long mailId;

    @ApiModelProperty(value = "接收邮件用户id")
    @Excel(name = "接收邮件用户id")
    private Long sendToUserId;

    @ApiModelProperty(value = "模版编码")
    @Excel(name = "模版编码")
    private Long emailTemplateId;

    @ApiModelProperty(value = "模版标题")
    @Excel(name = "模版标题")
    private String title;

    @ApiModelProperty(value = "模版内容")
    @Excel(name = "模版内容")
    private String content;

    @ApiModelProperty(value = "实际发送时间")
    @JsonFormat(timezone="GMT+8", pattern = "yyyy-MM-dd")
    @Excel(name = "实际发送时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date sendTime;

    @ApiModelProperty(value = "计划发送时间")
    @JsonFormat(timezone="GMT+8", pattern = "yyyy-MM-dd")
    @Excel(name = "计划发送时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date scheduledSendTime;

    @ApiModelProperty(value = "所属计划id")
    @Excel(name = "所属计划id")
    private Long belongId;

    @ApiModelProperty(value = "发送状态(0-未发送 1-已发送)")
    @Excel(name = "发送状态(0-未发送 1-已发送)")
    private Integer sendStatus;

    @ApiModelProperty(value = "取消状态(0-未取消 1-已取消 2-缺失邮箱取消 3-发送时未知异常取消)")
    @Excel(name = "取消状态(0-未取消 1-已取消 2-缺失邮箱取消 3-发送时未知异常取消)")
    private Integer isCancelled;

    @ApiModelProperty(value = "取消时间")
    @JsonFormat(timezone="GMT+8", pattern = "yyyy-MM-dd")
    @Excel(name = "取消时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date cancelTime;

    @ApiModelProperty(value = "删除标志（0代表存在 2代表删除）")
    private String delFlag;


}
