mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-11-10 13:01:43 +08:00
feat: 新增 WebSocket 消息通知 (#67)
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package top.continew.admin.common.model.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class WsMsg implements Serializable {
|
||||
/**
|
||||
* 消息 ID
|
||||
*/
|
||||
public String msgId;
|
||||
|
||||
/**
|
||||
* 发送者 ID
|
||||
*/
|
||||
public String fromId;
|
||||
|
||||
/**
|
||||
* 发送人名称
|
||||
*/
|
||||
public String fromName;
|
||||
|
||||
/**
|
||||
* 接受者ID
|
||||
*/
|
||||
public String toId;
|
||||
|
||||
/**
|
||||
* 消息类型
|
||||
*/
|
||||
public int msgType;
|
||||
|
||||
/**
|
||||
* 发送消息时间戳
|
||||
*/
|
||||
public long sendTime;
|
||||
|
||||
/**
|
||||
* 消息内容
|
||||
*/
|
||||
public String content;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user