go_dreamfactory/modules/battlerecord/api.go
2023-08-25 11:01:48 +08:00

30 lines
569 B
Go

package battlerecord
import (
"go_dreamfactory/modules"
"go_dreamfactory/lego/base"
"go_dreamfactory/lego/core"
)
/*
API
*/
type apiComp struct {
modules.MCompGate
service base.IRPCXService
module *BattleRecord
}
//组件初始化接口
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.(*BattleRecord)
return
}
func (this *apiComp) Start() (err error) {
err = this.MCompGate.Start()
return
}