返回值

This commit is contained in:
Max 2021-09-29 07:36:00 +08:00
parent cd27da75c3
commit eb1cfef957
2 changed files with 3 additions and 3 deletions

View file

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

View file

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