diff --git a/controller.go b/controller.go index ff14273..2cd328b 100644 --- a/controller.go +++ b/controller.go @@ -41,6 +41,8 @@ type HttpController interface { type WsController interface { HttpController + // 请求处理 + ExecuteWS(GlobalParams) error // 获取 Ws 客户端 WsClient() WsClient // 获取 Ws 标识 @@ -102,6 +104,10 @@ func (HttpBaseController) Execute(params GlobalParams) any { return nil } +func (WsBaseController) ExecuteWS(params GlobalParams) error { + return nil +} + func (this WsBaseController) WsClient() WsClient { return this.ws }