From 6aa2b748409268407d6b2f07a77a1a3afea4aab0 Mon Sep 17 00:00:00 2001 From: hoteas <925970985@qq.com> Date: Fri, 4 Jun 2021 10:05:07 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E6=88=90=E4=BB=A3=E7=A0=81=EF=BC=8C?= =?UTF-8?q?=E9=80=90=E6=AD=A5=E8=BF=9B=E8=A1=8C=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/admin/init.go | 5 +++-- example/admin/user.go | 4 +--- example/config/app.json | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/example/admin/init.go b/example/admin/init.go index 5f20a66..1b1c4bb 100644 --- a/example/admin/init.go +++ b/example/admin/init.go @@ -4,9 +4,10 @@ import ( . "../../../hotime" ) -var ID = "2f92h3herh23rh2y8" +var ID = "bc662f6bf19a1f3f269045167a2f273d" // Project 管理端项目 var Project = Proj{ - "user": UserCtr, + //"user": UserCtr, + "user": userCtr, } diff --git a/example/admin/user.go b/example/admin/user.go index d774457..07460bf 100644 --- a/example/admin/user.go +++ b/example/admin/user.go @@ -3,13 +3,11 @@ package admin import ( . "../../../hotime" . "../../../hotime/common" - "fmt" ) -var UserCtr = Ctr{ +var userCtr = Ctr{ "info": func(that *Context) { 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) }, "add": func(that *Context) { diff --git a/example/config/app.json b/example/config/app.json index 562a997..c7eefe2 100644 --- a/example/config/app.json +++ b/example/config/app.json @@ -1,5 +1,5 @@ { - "ID": "2f92h3herh23rh2y8", + "id": "bc662f6bf19a1f3f269045167a2f273d", "label": "HoTime管理平台", "menu": [ {