sen
2025-08-15 85b9dbfaa4afdc5738dcf97a40b50b58b1ee6ad6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package com.ruoyi.framework.web.domain;
 
import lombok.Data;
 
@Data
public class Message {
    /**
     * 发送者
     */
    private String senderId;
    /**
     * 接收者 (all 表示群发)
     */
    private String receiverId;
    /**
     * 消息类型(text/heartbeat)
     */
    private String type;
    /**
     * 消息内容
     */
    private String content;
 
    public Message() {
    }
 
    public Message(String content) {
        this.type = "text";
        this.content = content;
    }
}