go_dreamfactory/modules/whackamole/api.go
2023-10-26 09:25:22 +08:00

18 lines
391 B
Go

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