go_dreamfactory/modules/linestory/api.go
2022-11-15 19:39:38 +08:00

31 lines
726 B
Go

package linestory
import (
"go_dreamfactory/lego/core"
"go_dreamfactory/modules"
)
const (
LinestorySubTypeChapter = "chapter" //章节
LinestorySubTypeMaintask = "maintask" //主线任务
LinestorySubTypeReceive = "receive" //领取章节奖励
)
type apiComp struct {
modules.MCompGate
service core.IService
moduleLinestory *ModuleLinestory
}
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.moduleLinestory = module.(*ModuleLinestory)
this.service = service
return
}
func (this *apiComp) Start() (err error) {
err = this.MCompGate.Start()
return
}