This commit is contained in:
hoteas
2017-08-23 02:05:47 +00:00
parent 6940609ad2
commit 2dc47959bf
10 changed files with 309 additions and 341 deletions
+1 -11
View File
@@ -4,12 +4,10 @@ import (
"encoding/json"
"errors"
"net/http"
"time"
)
type Context struct {
LastErr Error
tag int64
baseContext
Resp http.ResponseWriter
Req *http.Request
Application *Application
@@ -22,14 +20,6 @@ type Context struct {
HandlerStr string //复写请求url
}
//唯一标志
func (this *Context) GetTag() int64 {
if this.tag == int64(0) {
this.tag = time.Now().UnixNano()
}
return this.tag
}
//唯一标志
func (this *Context) Mtd(router [3]string) Map {