feat: 新增 WebSocket 消息通知 (#67)

This commit is contained in:
Claudio Lecher
2024-05-22 10:50:57 +08:00
committed by GitHub
parent af22df8adb
commit 9970c461cc
10 changed files with 665 additions and 0 deletions

View File

@@ -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;
}