29 lines
557 B
Go
29 lines
557 B
Go
package sys
|
|
|
|
import (
|
|
"go_dreamfactory/lego/core"
|
|
"go_dreamfactory/modules"
|
|
)
|
|
|
|
const (
|
|
SysSubTypeFunc = "funclist"
|
|
)
|
|
|
|
type apiComp struct {
|
|
modules.MCompGate
|
|
service core.IService
|
|
moduleSys *ModuleSys
|
|
}
|
|
|
|
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.moduleSys = module.(*ModuleSys)
|
|
this.service = service
|
|
return
|
|
}
|
|
|
|
func (this *apiComp) Start() (err error) {
|
|
err = this.MCompGate.Start()
|
|
return
|
|
}
|