提交 | 用户 | 时间
|
a6de49
|
1 |
package com.iailab.module.websocket.api.dto; |
H |
2 |
|
|
3 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
4 |
|
|
5 |
import lombok.Data; |
|
6 |
|
|
7 |
import javax.validation.constraints.NotNull; |
|
8 |
import java.util.List; |
|
9 |
|
|
10 |
/** |
|
11 |
* @author PanZhibao |
|
12 |
* @Description |
|
13 |
* @createTime 2023年03月28日 00:06:00 |
|
14 |
*/ |
|
15 |
@Data |
|
16 |
@Schema(name = "消息表") |
|
17 |
public class ApiMsgDTO { |
|
18 |
|
|
19 |
@Schema(name = "id") |
|
20 |
private String id = Long.toString(System.currentTimeMillis()); |
|
21 |
|
|
22 |
@Schema(name = "消息类型") |
|
23 |
private String msgType; |
|
24 |
|
|
25 |
@Schema(name = "消息标题") |
|
26 |
@NotNull(message="消息标题不能为空") |
|
27 |
private String title; |
|
28 |
|
|
29 |
@Schema(name = "消息内容") |
|
30 |
@NotNull(message="消息内容不能为空") |
|
31 |
private String content; |
|
32 |
|
|
33 |
@Schema(name = "接收人") |
|
34 |
@NotNull(message="接收人不能为空") |
|
35 |
private List<String> receivers; |
|
36 |
|
|
37 |
@Schema(name = "发送人") |
|
38 |
private String senderName; |
|
39 |
|
|
40 |
@Schema(name = "appKey") |
|
41 |
@NotNull(message="appKey不能为空") |
|
42 |
private String appKey; |
|
43 |
|
|
44 |
@Schema(name = "授权用户token") |
|
45 |
@NotNull(message="授权用户token不能为空") |
|
46 |
private String token; |
|
47 |
|
|
48 |
} |