整合目前新的详情接口
This commit is contained in:
@@ -27,6 +27,11 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
||||
Path: "/api/websocket/common_notify",
|
||||
Handler: CommonNotifyHandler(serverCtx),
|
||||
},
|
||||
{
|
||||
Method: http.MethodPost,
|
||||
Path: "/api/websocket/close_websocket",
|
||||
Handler: CloseWebsocketHandler(serverCtx),
|
||||
},
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
@@ -25,6 +25,10 @@ type CommonNotifyReq struct {
|
||||
Data map[string]interface{} `json:"data"` //后端与前端约定好的数据
|
||||
}
|
||||
|
||||
type CloseWebsocketReq struct {
|
||||
Wid string `json:"wid"`
|
||||
}
|
||||
|
||||
type Request struct {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user