30 lines
659 B
Go
30 lines
659 B
Go
package linestory
|
|
|
|
import (
|
|
"go_dreamfactory/lego/core"
|
|
"go_dreamfactory/modules"
|
|
)
|
|
|
|
const (
|
|
LinestorySubTypeDostart = "dostart" //开始
|
|
LinestorySubTypeDotask = "dotask" //做任务
|
|
)
|
|
|
|
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
|
|
}
|