go_dreamfactory/modules/monkey/api.go
2023-11-24 14:31:25 +08:00

18 lines
379 B
Go

package monkey
import (
"go_dreamfactory/lego/core"
"go_dreamfactory/modules"
)
type apiComp struct {
modules.MCompGate
module *Monkey
}
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.(*Monkey)
return
}