提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.infra.api.websocket.dto; |
H |
2 |
|
|
3 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
4 |
import lombok.Data; |
|
5 |
|
|
6 |
import javax.validation.constraints.NotEmpty; |
|
7 |
|
|
8 |
@Schema(description = "RPC 服务 - WebSocket 消息发送 Request DTO") |
|
9 |
@Data |
|
10 |
public class WebSocketSendReqDTO { |
|
11 |
|
|
12 |
@Schema(description = "Session 编号", example = "abc") |
|
13 |
private String sessionId; |
|
14 |
@Schema(description = "用户编号", example = "1024") |
|
15 |
private Long userId; |
|
16 |
@Schema(description = "用户类型", example = "1") |
|
17 |
private Integer userType; |
|
18 |
|
|
19 |
@Schema(description = "消息类型", example = "demo-message") |
|
20 |
@NotEmpty(message = "消息类型不能为空") |
|
21 |
private String messageType; |
|
22 |
@Schema(description = "消息内容", example = "{\"name\":\"李四\"}}") |
|
23 |
@NotEmpty(message = "消息内容不能为空") |
|
24 |
private String messageContent; |
|
25 |
|
|
26 |
} |