返回值
This commit is contained in:
parent
cd27da75c3
commit
eb1cfef957
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue