package activity import ( "go_dreamfactory/comm" "go_dreamfactory/lego/core" "go_dreamfactory/modules" ) type Activity struct { modules.ModuleBase api *apiComp configure *configureComp modelActivity *modelActivity service core.IService modelhdList *modelHdList } func NewModule() core.IModule { return &Activity{} } func (this *Activity) GetType() core.M_Modules { return comm.ModuleActivity } func (this *Activity) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) { err = this.ModuleBase.Init(service, module, options) this.service = service return } func (this *Activity) OnInstallComp() { this.ModuleBase.OnInstallComp() this.api = this.RegisterComp(new(apiComp)).(*apiComp) this.configure = this.RegisterComp(new(configureComp)).(*configureComp) this.modelActivity = this.RegisterComp(new(modelActivity)).(*modelActivity) this.modelhdList = this.RegisterComp(new(modelHdList)).(*modelHdList) } func (this *Activity) CheckActivateActivityCollect(uid string, id string) (err error) { return }