package com.ruoyi.cai.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 聊天记录对象 cai_user_chat_record
 *
 * @author 77
 * @date 2024-01-09
 */
@Data
@TableName("cai_user_chat_record")
public class UserChatRecord implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     *
     */
    @TableId(value = "id")
    private Long id;
    private Long traceId;
    /**
     *
     */
    private Long fromUid;

    private String fromUsercode;
    /**
     *
     */
    private Long toUid;
    private String toUsercode;
    /**
     *
     */
    private String content;
    /**
     * 消息类型:0=文本消息,1=图片消息,2=语音消息,3=视频消息,4=发送地理位置消息,6=发送文件消息,10=发送提示消息,100=发送第三方自定义消息
     */
    private Integer type;
    /**
     * 图片下载状态:0=未更新,1=已更新,2=已下载,3=下载失败
     */
    private Integer imgStatus;

    private LocalDateTime createTime;

}
