From 56a3ee4a9a0b7f03b8ec647a6b839fe97f142e68 Mon Sep 17 00:00:00 2001 From: what Date: Mon, 5 Jun 2023 14:20:32 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=20WsController=20=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller.go | 6 ++++++ 1 file changed, 6 insertions(+) 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 }