Add the frame for installation.

This commit is contained in:
zicla
2018-12-03 21:21:37 +08:00
parent 821c625fb9
commit 5611c5acb6
24 changed files with 593 additions and 452 deletions

View File

@ -5,7 +5,11 @@ import (
)
type IBean interface {
//初始化方法
Init()
//所有配置都加载完成后调用的方法,包括数据库加载完毕
ConfigPost()
//快速的Panic方法
PanicError(err error)
}
@ -17,6 +21,10 @@ func (this *Bean) Init() {
this.logger = LOGGER
}
func (this *Bean) ConfigPost() {
}
//处理错误的统一方法 可以省去if err!=nil 这段代码
func (this *Bean) PanicError(err error) {
if err != nil {