package com.ruoyi.message.frequency.goeasymessagenew.entity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.experimental.Accessors;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.vo.UserInfo;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * goeasy最新消息对象 t_goeasy_message_new
 *
 * @author liwenlong
 * @date 2024-04-20
 */
@Data
@Accessors(chain = true)
@TableName("t_goeasy_message_new")
public class GoeasyMessageNew extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    @ApiModelProperty("主键id")
    private Long id;

    @ApiModelProperty("删除标志 1正常 删除 3 禁用")
    private Integer delFlag;

    @ApiModelProperty("消息(json字符串)")
    @Excel(name = "消息(json字符串)")
    private String payload;

    @ApiModelProperty("goeasy最新消息发送时间")
    @Excel(name = "goeasy最新消息发送时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date goeasyTime;

    @ApiModelProperty("goeasy消息类型")
    @Excel(name = "goeasy消息类型")
    private String type;

    @ApiModelProperty("用户ID")
    @Excel(name = "用户ID")
    private Long userId;

    @ApiModelProperty("聊天对象用户ID")
    @Excel(name = "聊天对象用户ID")
    private Long otherUserId;

    @TableField(exist = false)
    private Long senderUserId;

    @TableField(exist = false)
    private Integer senderUserType;

    @TableField(exist = false)
    private Long receiverUserId;

    @TableField(exist = false)
    private Integer receiverUserType;


    @ApiModelProperty("发送用户消息")
    @TableField(exist = false)
    private UserInfo sendUserInfo;

    @ApiModelProperty("接收用户消息")
    @TableField(exist = false)
    private UserInfo receiveUserInfo;


    @ApiModelProperty("传参")
    @TableField(exist = false)
    private UserInfo userInfo;
}
