V2.0封测

This commit is contained in:
hoteas
2022-08-02 03:02:57 +08:00
parent 9d31f2d1f8
commit 48ee95ca67
3 changed files with 183 additions and 10 deletions
+10
View File
@@ -12,6 +12,16 @@ var AppProj = Proj{
"ctg": CtgCtr,
"mail": MailCtr,
"test": {
"test": func(that *Context) {
//data:=that.Db.Table("admin").Order("id DESC").Select("*")
//data1:=that.Db.Table("admin").Where(Map{"name[~]":"m"}).Order("id DESC").Select("*")
//
//data3:=that.Db.Select("admin","*",Map{"name[~]":"m"})
data2 := that.Db.Table("article").Where(Map{"title[~]": "m"}).Order("id DESC").Page(1, 10).Select("*")
c := that.Db.Table("article").Where(Map{"title[~]": "m"}).Order("id DESC").Group("title").Select("*")
//that.Display(0,Slice{data1,data,data3,data2})
that.Display(0, Slice{data2, c})
},
"res": func(that *Context) {
ebw_res := that.Db.Select("ebw_res", "*")
+1
View File
@@ -12,6 +12,7 @@ func main() {
return isFinished
})
appIns.Run(Router{"app": app.AppProj})
}