Simplify all the context link.

This commit is contained in:
zicla
2018-11-29 17:41:18 +08:00
parent 0d918fbb69
commit cb96b18579
24 changed files with 124 additions and 126 deletions

View File

@ -3,17 +3,17 @@ package rest
import "net/http"
type IBean interface {
Init(context *Context)
Init()
PanicError(err error);
PanicWebError(msg string, code int);
}
type Bean struct {
context *Context
}
func (this *Bean) Init(context *Context) {
this.context = context
func (this *Bean) Init() {
}
//处理错误的统一方法