框架基本完成

This commit is contained in:
hoteas
2017-08-17 02:14:22 +00:00
parent f97dd2752b
commit b15004b86b
4 changed files with 4 additions and 20 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ type Context struct {
tag int64
Resp http.ResponseWriter
Req *http.Request
App *App
Application *Application
RouterString []string
Config Map
Db *HoTimeDB
@@ -32,7 +32,7 @@ func (this *Context) GetTag() int64 {
//唯一标志
func (this *Context) Mtd(router [3]string) Map {
this.App.Router[router[0]][router[1]][router[2]](this)
this.Application.Router[router[0]][router[1]][router[2]](this)
d := this.resp
this.resp = nil
return d