go_dreamfactory/modules/hero/api.go

30 lines
618 B
Go

package hero
import (
"go_dreamfactory/lego/core"
"go_dreamfactory/modules"
)
type Api_Comp struct {
modules.MComp_GateComp
service core.IService
module *Hero
}
const ( //消息回复的头名称
StrengthenUplv = "strengthenherolv"
)
//组件初始化接口
func (this *Api_Comp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
this.MComp_GateComp.Init(service, module, comp, options)
this.module = module.(*Hero)
this.service = service
return
}
func (this *Api_Comp) Start() (err error) {
err = this.MComp_GateComp.Start()
return
}