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