package com.sqx.modules.gameChat.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;

/**
 * 聊天内容对象 chat_content
 * 
 * @author fang
 * @date 2020-03-17
 */
@Data
@TableName("chat_content_tcwm")
public class ChatContentTcwm {
    private static final long serialVersionUID = 1L;

    /** 聊天内容id */
    @TableId(type = IdType.INPUT)
    private Long chatContentId;

    /** 聊天会话id */
    private Long ordersId;

    /** 聊天内容 */
    private String content;

    /** 聊天类型 1文字  2图片  3语音 */
    private Integer messageType;

    /** 宽度 */
    private String width;

    /** 高度 */
    private String height;

    private String voiceLength;

    /** 用户id */
    private Long userId;

    /** 骑手id */
    private Long riderId;

    /** 商户id */
    private Long shopId;

    /** 用户未读状态（0未读 1已读） */
    private Integer userStatus;

    /** 骑手未读状态（0未读 1已读） */
    private Integer riderStatus;

    /** 商户未读状态（0未读 1已读） */
    private Integer shopStatus;

    /**
     * 创建时间
     */
    private String createTime;

    @TableField(exist = false)
    private String shopName;

    @TableField(exist = false)
    private String shopCover;

    @TableField(exist = false)
    private String userName;

    @TableField(exist = false)
    private String userAvatar;

    @TableField(exist = false)
    private String riderName;

    @TableField(exist = false)
    private String riderAvatar;

    @TableField(exist = false)
    private Integer unreadMessageCount;

    @TableField(exist = false)
    private Integer userUnread;

    @TableField(exist = false)
    private Integer riderUnread;

    @TableField(exist = false)
    private Integer shopUnread;

    @TableField(exist = false)
    private String chatCreateTime;

    @ApiModelProperty("最后一次聊天时间")
    @TableField(exist = false)
    private String ordertime;

    @ApiModelProperty("群聊id")
    @TableField(exist = false)
    private Long indentId;


}
