| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- package com.zksy.domain;
- 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 java.io.Serializable;
- import java.time.LocalDateTime;
- import lombok.Data;
- /**
- *
- * @TableName chat_message
- */
- @TableName(value ="chat_message")
- @Data
- public class ChatMessage implements Serializable {
- /**
- * 消息ID
- */
- @TableId(type = IdType.AUTO)
- private Long id;
- /**
- * 所属会话ID
- */
- private Long sessionId;
- /**
- * 发送者ID
- */
- private String fromId;
- /**
- * 发送者角色
- */
- private Object fromRole;
- /**
- * 接收者ID(单聊场景用)
- */
- private String toId;
- /**
- * 消息类型
- */
- private Object msgType;
- /**
- * 消息内容(JSON 或纯文本)
- */
- private String content;
- /**
- * 消息状态
- */
- private Object status;
- /**
- * 发送时间
- */
- private LocalDateTime createdAt;
- @TableField(exist = false)
- private static final long serialVersionUID = 1L;
- }
|