go_dreamfactory/modules/linestory/api.go
2023-05-29 18:12:08 +08:00

31 lines
701 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
module *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.module = module.(*ModuleLinestory)
this.service = service
return
}
func (this *apiComp) Start() (err error) {
err = this.MCompGate.Start()
return
}