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;
| }
| }
|
|