package com.sqx.modules.errand.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sqx.modules.chats.utils.DateUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 跑腿订单确认收货短信发送记录
 */
@Data
@ApiModel("tb_indent_sms_send_log")
public class TbIndentSmsSendLog {

    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("订单id")
    private Long orderId;

    @ApiModelProperty("短信模板id")
    private Long templateId;

    @ApiModelProperty("发送内容")
    private String sendContent;

    @ApiModelProperty("是否发送成功 1发送成功 0发送失败")
    private String successFlag;

    @ApiModelProperty("短信发送结果")
    private String sendResult;

    @ApiModelProperty("发送人id")
    private Long sendFromId;

    @ApiModelProperty("接收号码")
    private String sendTo;

    @ApiModelProperty("发送时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date sendTime;

    @ApiModelProperty("发送来源 1骑手、2商家")
    private String sendSource;
}
