整个包结构重构

This commit is contained in:
hoteas
2021-05-24 07:27:41 +08:00
parent 77ded19742
commit 9bc930750d
23 changed files with 245 additions and 202 deletions
+5 -3
View File
@@ -1,13 +1,15 @@
package hotime
import (
. "./cache"
. "./common"
. "./db"
"encoding/json"
"errors"
"net/http"
)
type Context struct {
contextBase
ContextBase
Resp http.ResponseWriter
Req *http.Request
Application *Application
@@ -37,7 +39,7 @@ func (this *Context) Display(statu int, data interface{}) {
tpe := this.Config.GetMap("error").GetString(ObjToStr(statu))
if tpe == "" {
logFmt(errors.New("找不到对应的错误码"), 2, LOG_WARN)
//logFmt(errors.New("找不到对应的错误码"), 2, LOG_WARN)
}
temp["type"] = tpe