You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 lines
590 B

package api
import (
"yunyan/modules"
"yunyan/lego/base"
"yunyan/lego/core"
)
type apiComp struct {
modules.MCompHttpGate
service base.IRPCXService
module *API
options *Options
}
func (this *apiComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
this.MCompHttpGate.Init(service, module, comp, options)
this.service = service.(base.IRPCXService)
this.module = module.(*API)
this.options = options.(*Options)
return
}
func (this *apiComp) Start() (err error) {
err = this.MCompHttpGate.Start()
return
}