package sys import ( "go_dreamfactory/comm" "go_dreamfactory/lego/core" "go_dreamfactory/modules" ) type ModuleSys struct { modules.ModuleBase api *apiComp configure *configureComp } func NewModule() core.IModule { return &ModuleSys{} } func (this *ModuleSys) OnInstallComp() { this.ModuleBase.OnInstallComp() this.api = this.RegisterComp(new(apiComp)).(*apiComp) this.configure = this.RegisterComp(new(configureComp)).(*configureComp) } func (this *ModuleSys) GetType() core.M_Modules { return comm.ModuleSys }