go_dreamfactory/modules/arena/api.go
2022-10-21 15:26:43 +08:00

30 lines
591 B
Go

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