31 lines
701 B
Go
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
|
|
}
|