This commit is contained in:
laodaming
2023-11-03 16:33:07 +08:00
parent 0a45391f7c
commit c02ab392c4
5 changed files with 0 additions and 101 deletions

View File

@@ -18,9 +18,6 @@ service websocket {
//通用回调接口
@handler CommonNotifyHandler
post /api/websocket/common_notify(CommonNotifyReq) returns (response);
//关闭某个连接
@handler CloseWebsocketHandler
post /api/websocket/close_websocket(CloseWebsocketReq) returns (response);
//获取ws统计信息
@handler GetStatHandler
get /api/websocket/get_stat(GetStatReq) returns (response);
@@ -44,10 +41,6 @@ type CommonNotifyReq {
GuestId int64 `json:"guest_id,optional"` //游客id
Data map[string]interface{} `json:"data"` //后端与前端约定好的数据
}
//关闭连接
type CloseWebsocketReq {
Wid string `json:"wid"`
}
//获取ws统计信息
type GetStatReq {
Password string `form:"password"`