go_dreamfactory/modules/capturesheep/module.go
2023-08-31 18:19:13 +08:00

54 lines
1.3 KiB
Go

package capturesheep
import (
"go_dreamfactory/comm"
"go_dreamfactory/lego/core"
"go_dreamfactory/modules"
"go_dreamfactory/pb"
)
/*
模块名:周长任务
描述:周长任务
开发:李伟
*/
type CaptureSheep struct {
modules.ModuleBase
service core.IService
api *apiComp
configure *configureComp
modelCaptureSheep *ModelCaptureSheep
}
func NewModule() core.IModule {
return &CaptureSheep{}
}
func (this *CaptureSheep) GetType() core.M_Modules {
return comm.ModuleWeektask
}
func (this *CaptureSheep) 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 *CaptureSheep) Start() (err error) {
err = this.ModuleBase.Start()
return
}
func (this *CaptureSheep) OnInstallComp() {
this.ModuleBase.OnInstallComp()
this.api = this.RegisterComp(new(apiComp)).(*apiComp)
this.modelCaptureSheep = this.RegisterComp(new(ModelCaptureSheep)).(*ModelCaptureSheep)
this.configure = this.RegisterComp(new(configureComp)).(*configureComp)
}
// 查询每日红点信息
func (this *CaptureSheep) Reddot(session comm.IUserSession, rid ...comm.ReddotType) (reddot map[comm.ReddotType]*pb.ReddotItem) {
return
}