重新设计了Libray.Json Api以及 WebSocket 的交互处理方式

This commit is contained in:
fengjiayi
2025-08-02 10:48:31 +08:00
parent 1bccccc835
commit 6fc57458a7
29 changed files with 883 additions and 348 deletions

View File

@@ -0,0 +1,29 @@
namespace Serein.Proto.WebSocket.Handle
{
/// <summary>
/// 远程环境配置
/// </summary>
public class WebSocketModuleConfig
{
/// <summary>
/// 有关消息ID的 Json Key
/// </summary>
public string MsgIdJsonKey { get; set; } = string.Empty;
/// <summary>
/// 有关消息主题的 Json Key
/// </summary>
public string ThemeJsonKey { get; set; } = string.Empty;
/// <summary>
/// 有关数据的 Json Key
/// </summary>
public string DataJsonKey { get; set; } = string.Empty;
/// <summary>
/// 使用怎么样的数据
/// </summary>
public bool IsResponseUseReturn { get; set; }
}
}