package pack import ( "go_dreamfactory/comm" "go_dreamfactory/modules" "github.com/liwei1dao/lego/core" ) /* 模块名:Pack 描述:背包系统模块 开发:李伟 */ func NewModule() core.IModule { m := new(Pack) return m } type Pack struct { modules.ModuleBase api_comp *Api_Comp configure_comp *Configure_Comp } func (this *Pack) GetType() core.M_Modules { return comm.SM_PackModule } func (this *Pack) OnInstallComp() { this.ModuleBase.OnInstallComp() this.api_comp = this.RegisterComp(new(Api_Comp)).(*Api_Comp) this.configure_comp = this.RegisterComp(new(Configure_Comp)).(*Configure_Comp) }