This commit is contained in:
aozhiwei 2023-10-01 08:47:34 +08:00
parent b46f1d1902
commit f32c02b76a

View File

@ -7,19 +7,29 @@ import (
)
type app struct {
initCb func()
unInitCb func()
}
func (this *app) GetPkgName() string {
return "adminserver"
}
func (this *app) Run(initCb func(), unInitCb func()) {
this.initCb = initCb
this.unInitCb = unInitCb
f5.Run(this)
}
func (this *app) Init() {
f5.LoadMetaTable(mt.Table)
this.registerDataSources()
//ginMgr.init()
this.initCb()
}
func (this *app) UnInit() {
this.unInitCb()
//ginMgr.unInit()
}