MqttMessageRoomUserVO.java
965 字节
package com.skua.modules.remotemeeting.vo;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
@Data
public class MqttMessageRoomUserVO {
//用户进入房间:{"type":"ENTER","roomId":"roomId_06529545","userId":"2","message":"[提示]2 进入.","userCount":1,"createTime":"2023-01-11 11:41:59"}
//用户离开房间:{"type":"LEAVE","roomId":"roomId_06529545","userId":"1","message":"[提示]1 离开.","userCount":0,"createTime":"2023-01-11 11:41:58"}
/** mqtt消息类型 */
String type;
/** 房间Id */
String roomId;
/** 用户id */
String userId;
/** 消息内容 */
String message;
/** 房间在线人数 */
Integer userCount;
/** 时间 */
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSSSSSSSS")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
Date createTime;
}