package com.cyksj.model.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * corp_user_send_record
 * @author huang
 */
@Data
public class CorpUserSendRecord implements Serializable {

    @TableId(value = "id",type = IdType.AUTO)
    @ExcelIgnore
    private Long id;

    /**
     * 企业群发记录消息记录表id
     */
    @ExcelIgnore
    private Long corpMsgRecordId;
    @ExcelProperty("姓名")
    private String name;

    @TableField(exist = false)
    @ExcelIgnore
    private Integer sendType;

    /**
     * 头像
     */
    @ExcelProperty("头像")
    private String avatar;

    @ExcelProperty("企业用户id")
    private String externalUserid;

    @TableField(fill = FieldFill.INSERT)
    @ExcelProperty("发送时间")
    private Date sendTime;

    /**
     * 发送状态：0-未发送 1-已发送 2-因客户不是好友导致发送失败 3-因客户已经收到其他群发消息导致发送失败
     */
    @ExcelProperty("状态(1已发送)")
    private Integer status;

    private static final long serialVersionUID = 1L;
}
