forked from golang/hotime
20 lines
238 B
Go
20 lines
238 B
Go
package app
|
|
|
|
import (
|
|
. "../../../iedc-go"
|
|
. "../../common"
|
|
//"strings"
|
|
)
|
|
|
|
var Category = Ctr{
|
|
|
|
//获取列表
|
|
"list": func(this *Context) {
|
|
|
|
re := this.Db.Select("category", "*", Map{"parent_id": 1})
|
|
|
|
this.Display(0, re)
|
|
|
|
},
|
|
}
|