package addrecharge import ( "go_dreamfactory/comm" "go_dreamfactory/lego/core" "go_dreamfactory/modules" "go_dreamfactory/pb" ) /* 累计充值 */ type AddRecharge struct { modules.ModuleBase service core.IService api *apiComp configure *configureComp modelRecharge *ModelRecharge } func NewModule() core.IModule { return &AddRecharge{} } func (this *AddRecharge) GetType() core.M_Modules { return comm.ModuleKFTask } func (this *AddRecharge) 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 *AddRecharge) Start() (err error) { err = this.ModuleBase.Start() return } func (this *AddRecharge) OnInstallComp() { this.ModuleBase.OnInstallComp() this.api = this.RegisterComp(new(apiComp)).(*apiComp) this.modelRecharge = this.RegisterComp(new(ModelRecharge)).(*ModelRecharge) this.configure = this.RegisterComp(new(configureComp)).(*configureComp) } // 活动开启 func (this *AddRecharge) ActivityOpenNotice(hdlist *pb.DBHuodong) { switch hdlist.Itype { case comm.AddUpRecharge: break } } // 活动关闭 func (this *AddRecharge) ActivityCloseNotice(hdlist *pb.DBHuodong) { } // 充值金额 func (this *AddRecharge) Recharge(session comm.IUserSession, amount int32) { }