接入RESTfull风格接口

This commit is contained in:
hoteas
2021-05-30 00:10:07 +08:00
parent 465ea889a2
commit 9af232840c
2 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ var UserCtr = Ctr{
},
"search": func(this *Context) {
user := this.Db.Select(this.RouterString[1], "*")
fmt.Println(user)
fmt.Println(user, user[0].GetFloat64("age"))
this.Display(0, user)
},
}