hotime/example/app/category.go

20 lines
247 B
Go
Raw Normal View History

2022-03-03 13:23:57 +00:00
package app
import (
. "../../../hotime"
. "../../../hotime/common"
//"strings"
)
var Category = Ctr{
//获取列表
"list": func(this *Context) {
re := this.Db.Select("category", "*", Map{"parent_id": 1})
this.Display(0, re)
},
}