go_dreamfactory/modules/sys/api.go
2022-09-08 15:49:17 +08:00

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
}