im 管理后台

This commit is contained in:
richjohnrambo
2026-08-11 23:13:51 +08:00
parent 0397fe5f22
commit 331a55751d
1407 changed files with 162069 additions and 2 deletions
+32
View File
@@ -0,0 +1,32 @@
// ================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// You can delete these comments if you wish manually maintain this interface file.
// ================================================================================
package service
import (
"github.com/gogf/gf/v2/net/ghttp"
)
type (
IHook interface {
BeforeServe(r *ghttp.Request)
AfterOutput(r *ghttp.Request)
}
)
var (
localHook IHook
)
func Hook() IHook {
if localHook == nil {
panic("implement not found for interface IHook, forgot register?")
}
return localHook
}
func RegisterHook(i IHook) {
localHook = i
}