[feat] WsController 调整
This commit is contained in:
parent
46afbc178a
commit
56a3ee4a9a
@ -41,6 +41,8 @@ type HttpController interface {
|
|||||||
|
|
||||||
type WsController interface {
|
type WsController interface {
|
||||||
HttpController
|
HttpController
|
||||||
|
// 请求处理
|
||||||
|
ExecuteWS(GlobalParams) error
|
||||||
// 获取 Ws 客户端
|
// 获取 Ws 客户端
|
||||||
WsClient() WsClient
|
WsClient() WsClient
|
||||||
// 获取 Ws 标识
|
// 获取 Ws 标识
|
||||||
@ -102,6 +104,10 @@ func (HttpBaseController) Execute(params GlobalParams) any {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (WsBaseController) ExecuteWS(params GlobalParams) error {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
func (this WsBaseController) WsClient() WsClient {
|
func (this WsBaseController) WsClient() WsClient {
|
||||||
return this.ws
|
return this.ws
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user