package growtask import ( "go_dreamfactory/comm" "go_dreamfactory/lego/base" "go_dreamfactory/lego/core" "go_dreamfactory/modules" ) type Growtask struct { modules.ModuleBase api *apiComp service base.IRPCXService configure *configureComp modelGrowtask *ModelGrowtask } func NewModule() core.IModule { return &Growtask{} } func (this *Growtask) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) { err = this.ModuleBase.Init(service, module, options) return } func (this *Growtask) GetType() core.M_Modules { return comm.ModuleGrowtask } func (this *Growtask) OnInstallComp() { this.ModuleBase.OnInstallComp() this.api = this.RegisterComp(new(apiComp)).(*apiComp) this.modelGrowtask = this.RegisterComp(new(ModelGrowtask)).(*ModelGrowtask) this.configure = this.RegisterComp(new(configureComp)).(*configureComp) }