package com.fs.sop.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;

/**
 * 企业微信SOP  定时任务对象 qw_sop_logs
 *
 * @author fs
 * @date 2024-08-05
 */
@Data
public class QwSopLogs implements Serializable {

    private String id;

    private Integer type;

    private String corpId;

    private Long customerId;

    private String qwUserid;

    private String externalUserId;

    private Long externalId;


    @TableField(exist = false)
    private String externalUserName;

    private Integer logType;

    /** 发送的内容 */
    private String contentJson;

    /** 发送状态 1发送成功 3待发送 */
    private Long sendStatus;

    /** 发送时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String sendTime;

    /** 实际发送实际 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String realSendTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String createTime;


    /** 公司id */
    private Long companyId;

    private Long receivingStatus;

    private String msgId;

    /**
    * 发送类型 1企微发送 2 Ai接口发送  3：完课发送  4：AI对话 5一键群发 6一键群发app
    */
    private Integer sendType;

    /**
    *  qw_sop表主键
    */
    private String sopId;

    /**
     * 备注
     */
    private String remark;

    private Long fsUserId;

    private String expirationTime;

    private Integer sort;
    @TableField(exist = false)
    private Integer takeRecords;

    // 构造函数
//    public QwSopLogs() {
//        this.id = UUID.randomUUID().toString();
//        this.sopId = UUID.randomUUID().toString();
//        this.sendStatus = 0L; // 默认值
//        this.sort = 1;        // 默认值
//    }

}
