go_dreamfactory/modules/hero/api.go
2022-06-28 12:03:14 +08:00

32 lines
723 B
Go

package hero
import (
"go_dreamfactory/lego/core"
"go_dreamfactory/modules"
)
type Api_Comp struct {
modules.MComp_GateComp
service core.IService
moduleHero *Hero
}
const ( //消息回复的头名称
StrengthenUplv = "strengthenherolv"
Hero_SubType_Info = "info" //英雄卡片信息
Hero_SubType_List = "list" //英雄列表
)
//组件初始化接口
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.moduleHero = module.(*Hero)
this.service = service
return
}
func (this *Api_Comp) Start() (err error) {
err = this.MComp_GateComp.Start()
return
}