liusheng
2023-10-13 b1bd4cbd01cb8d7616de0b3c321439985a149e5e
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
package com.smartor.domain;
 
import lombok.Data;
 
@Data
public class SocketMessage {
    //发送内空的类型(text,image)
    private String type;
    //内容(发送的文本内容)
    private String content;
    //用户ID(接收放)
    private String userId;
    //图片
    private String image;
    //图片,音、视频的字节大小
    private Integer fileSize;
 
    public SocketMessage(String type, String content) {
        this.type = type;
        this.content = content;
    }
 
    public SocketMessage() {
    }
}