2022-02-14 11:10:58 +00:00
|
|
|
package app
|
|
|
|
|
|
|
|
import (
|
|
|
|
. "../../../hotime"
|
|
|
|
. "../../common"
|
|
|
|
)
|
|
|
|
|
|
|
|
var tagCtr = Ctr{
|
|
|
|
|
|
|
|
"ctg_tree": func(this *Context) {
|
|
|
|
//orgId := ObjToInt(this.Req.FormValue("org_id"))
|
|
|
|
//if orgId == 0 {
|
|
|
|
// this.Display(3, "参数错误")
|
|
|
|
// return
|
|
|
|
//}
|
|
|
|
data := Map{}
|
2022-02-19 13:38:17 +00:00
|
|
|
run := func(t int) []Map {
|
2022-02-14 11:10:58 +00:00
|
|
|
//upCtg:=this.Db.Select("tag_ctg","*",Map{"parent_id":id})
|
|
|
|
//for _,v:=range upCtg{
|
2022-02-19 13:38:17 +00:00
|
|
|
upTag := this.Db.Select("tag", "*", Map{"type": t})
|
2022-02-14 11:10:58 +00:00
|
|
|
//v["tag"]=upTag
|
|
|
|
//}
|
|
|
|
return upTag
|
|
|
|
}
|
2022-02-19 13:38:17 +00:00
|
|
|
|
|
|
|
data["upload"] = run(1)
|
2022-02-14 11:10:58 +00:00
|
|
|
data["api"] = run(2)
|
2022-02-19 13:38:17 +00:00
|
|
|
data["analyse"] = run(0)
|
2022-02-14 11:10:58 +00:00
|
|
|
|
|
|
|
this.Display(0, data)
|
|
|
|
},
|
|
|
|
}
|