30 lines
721 B
Go
30 lines
721 B
Go
package worldtask
|
|
|
|
import (
|
|
"go_dreamfactory/lego/base"
|
|
"go_dreamfactory/lego/core"
|
|
"go_dreamfactory/modules"
|
|
)
|
|
|
|
const (
|
|
WorldtaskSubtypeMine = "mine"
|
|
WorldtaskSubtypeAccept = "accept"
|
|
WorldtaskSubtypeFinish = "finish"
|
|
WorldtaskNexttaskPush = "nexttask"
|
|
WorldtaskBattleStart = "battlestart"
|
|
WorldtaskBattleFinish = "battlefinish"
|
|
)
|
|
|
|
type apiComp struct {
|
|
modules.MCompGate
|
|
service base.IRPCXService
|
|
module *Worldtask
|
|
}
|
|
|
|
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.service = service.(base.IRPCXService)
|
|
this.module = module.(*Worldtask)
|
|
return
|
|
}
|