package com.iailab.module.websocket.api.dto;
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
import lombok.Data;
|
|
import javax.validation.constraints.NotNull;
|
import java.util.List;
|
|
/**
|
* @author PanZhibao
|
* @Description
|
* @createTime 2023年03月28日 00:06:00
|
*/
|
@Data
|
@Schema(name = "消息表")
|
public class ApiMsgDTO {
|
|
@Schema(name = "id")
|
private String id = Long.toString(System.currentTimeMillis());
|
|
@Schema(name = "消息类型")
|
private String msgType;
|
|
@Schema(name = "消息标题")
|
@NotNull(message="消息标题不能为空")
|
private String title;
|
|
@Schema(name = "消息内容")
|
@NotNull(message="消息内容不能为空")
|
private String content;
|
|
@Schema(name = "接收人")
|
@NotNull(message="接收人不能为空")
|
private List<String> receivers;
|
|
@Schema(name = "发送人")
|
private String senderName;
|
|
@Schema(name = "appKey")
|
@NotNull(message="appKey不能为空")
|
private String appKey;
|
|
@Schema(name = "授权用户token")
|
@NotNull(message="授权用户token不能为空")
|
private String token;
|
|
}
|