同步代码

This commit is contained in:
TsMask
2023-08-21 11:00:22 +08:00
parent 2735cc3009
commit 788f01674a
37 changed files with 2211 additions and 1 deletions

15
api/close.go Normal file
View File

@@ -0,0 +1,15 @@
package api
import (
"github.com/aceld/zinx/ziface"
"github.com/aceld/zinx/znet"
)
// CloseApi 关闭连接API
type CloseApi struct {
znet.BaseRouter
}
func (*CloseApi) Handle(request ziface.IRequest) {
request.GetConnection().Stop()
}