forked from golang/hotime
生成代码,逐步进行优化
This commit is contained in:
parent
a003612810
commit
6aa2b74840
@ -4,9 +4,10 @@ import (
|
|||||||
. "../../../hotime"
|
. "../../../hotime"
|
||||||
)
|
)
|
||||||
|
|
||||||
var ID = "2f92h3herh23rh2y8"
|
var ID = "bc662f6bf19a1f3f269045167a2f273d"
|
||||||
|
|
||||||
// Project 管理端项目
|
// Project 管理端项目
|
||||||
var Project = Proj{
|
var Project = Proj{
|
||||||
"user": UserCtr,
|
//"user": UserCtr,
|
||||||
|
"user": userCtr,
|
||||||
}
|
}
|
||||||
|
@ -3,13 +3,11 @@ package admin
|
|||||||
import (
|
import (
|
||||||
. "../../../hotime"
|
. "../../../hotime"
|
||||||
. "../../../hotime/common"
|
. "../../../hotime/common"
|
||||||
"fmt"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var UserCtr = Ctr{
|
var userCtr = Ctr{
|
||||||
"info": func(that *Context) {
|
"info": func(that *Context) {
|
||||||
re := that.Db.Get(that.RouterString[1], that.MakeCode.Info(that.RouterString[1]), Map{"id": that.RouterString[2]})
|
re := that.Db.Get(that.RouterString[1], that.MakeCode.Info(that.RouterString[1]), Map{"id": that.RouterString[2]})
|
||||||
fmt.Println(that.Db.LastQuery)
|
|
||||||
that.Display(0, re)
|
that.Display(0, re)
|
||||||
},
|
},
|
||||||
"add": func(that *Context) {
|
"add": func(that *Context) {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"ID": "2f92h3herh23rh2y8",
|
"id": "bc662f6bf19a1f3f269045167a2f273d",
|
||||||
"label": "HoTime管理平台",
|
"label": "HoTime管理平台",
|
||||||
"menu": [
|
"menu": [
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user