diff --git a/table/api.go b/table/api.go index e854ce4d..aff2e798 100644 --- a/table/api.go +++ b/table/api.go @@ -131,8 +131,8 @@ func apiDefaultSetting(table *Table) API { } } -// IsGuard 鉴权处理程序 -func (api API) IsGuard(v interface{}) bool { +// IsAllow 鉴权处理程序 +func (api API) IsAllow(v interface{}) bool { c, ok := v.(*gin.Context) if !ok { return false diff --git a/table/process.go b/table/process.go index c4c7e3f1..45e28ef8 100644 --- a/table/process.go +++ b/table/process.go @@ -23,7 +23,7 @@ func ProcessSearch(process *gou.Process) interface{} { name := any.Of(process.Args[0]).String() table := Select(name) api := table.APIs["search"] - if api.IsGuard(process.Args[4]) { + if api.IsAllow(process.Args[4]) { return nil }