feat: ws 请求消息体判断reqid和和结构序列化异常信息

This commit is contained in:
TsMask
2024-01-23 20:00:05 +08:00
parent ec9a30d78c
commit aba5e48005
4 changed files with 55 additions and 38 deletions

View File

@@ -15,6 +15,7 @@ type WSClient struct {
// WSRequest ws消息接收
type WSRequest struct {
Type string `json:"type"`
Data any `json:"data"`
RequestID string `json:"requestId"` // 请求ID
Type string `json:"type"` // 业务类型
Data any `json:"data"` // 查询结构
}