package uniongve import ( "go_dreamfactory/comm" "go_dreamfactory/lego/core" "go_dreamfactory/modules" ) func NewModule() core.IModule { m := new(UnionGve) return m } type UnionGve struct { modules.ModuleBase api *apiComp modelUniongve *ModelUniongve configure *MCompConfigure } // 模块名 func (this *UnionGve) GetType() core.M_Modules { return comm.ModuleUnionGve } // 模块初始化接口 注册用户创建角色事件 func (this *UnionGve) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) { err = this.ModuleBase.Init(service, module, options) return } // 模块初始化接口 注册用户创建角色事件 func (this *UnionGve) Start() (err error) { err = this.ModuleBase.Start() return } // 装备组件 func (this *UnionGve) OnInstallComp() { this.ModuleBase.OnInstallComp() this.api = this.RegisterComp(new(apiComp)).(*apiComp) this.configure = this.RegisterComp(new(MCompConfigure)).(*MCompConfigure) this.modelUniongve = this.RegisterComp(new(ModelUniongve)).(*ModelUniongve) }