[feat] WsController 调整

This commit is contained in:
what 2023-06-05 14:20:32 +08:00
parent 46afbc178a
commit 56a3ee4a9a

View File

@ -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
}