From 991f3c5cd550ff37786bd55671a713990a272735 Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Thu, 24 Aug 2023 15:51:32 +0800 Subject: [PATCH] fix --- server/websocket/internal/types/types.go | 4 ++-- server_api/websocket.api | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server/websocket/internal/types/types.go b/server/websocket/internal/types/types.go index 384b456e..bb992831 100644 --- a/server/websocket/internal/types/types.go +++ b/server/websocket/internal/types/types.go @@ -13,8 +13,8 @@ type RenderNotifyReq struct { } type CommonNotifyReq struct { - WebsocketId string `json:"websocket_id"` //websocket连接标识 - Data string `json:"data"` //aes_cbc加密密文 + WebsocketId string `json:"websocket_id"` //websocket连接标识 + Data map[string]interface{} `json:"data"` //后端与前端约定好的数据 } type Request struct { diff --git a/server_api/websocket.api b/server_api/websocket.api index 07c52943..63a9335f 100644 --- a/server_api/websocket.api +++ b/server_api/websocket.api @@ -29,6 +29,6 @@ type RenderNotifyReq { } //通用回调接口 type CommonNotifyReq { - WebsocketId string `json:"websocket_id"` //websocket连接标识 - Data string `json:"data"` //aes_cbc加密密文 + WebsocketId string `json:"websocket_id"` //websocket连接标识 + Data map[string]interface{} `json:"data"` //后端与前端约定好的数据 } \ No newline at end of file