go_dreamfactory/modules/growtask/api.go
2022-11-07 21:24:14 +08:00

26 lines
639 B
Go

package growtask
import (
"go_dreamfactory/lego/base"
"go_dreamfactory/lego/core"
"go_dreamfactory/modules"
)
const (
GrowtaskSubTypeList = "list" //任务列表
GrowtaskSubTypeReceive = "receive" //子任务奖励领取
GrowtaskSubTypeAdvreceive = "advreceive" //进阶奖励领取
)
type apiComp struct {
modules.MCompGate
service base.IRPCXService
module *Growtask
}
func (this *apiComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
_ = this.MCompGate.Init(service, module, comp, options)
this.module = module.(*Growtask)
return
}