go_dreamfactory/modules/linestory/module.go
2022-11-14 14:35:55 +08:00

38 lines
918 B
Go

// package
// 支线任务
// 赵长远
package linestory
import (
"go_dreamfactory/comm"
"go_dreamfactory/lego/core"
"go_dreamfactory/modules"
)
type ModuleLinestory struct {
modules.ModuleBase
api *apiComp
configure *configureComp
modelLinestory *ModelLinestory
}
func NewModule() core.IModule {
return &ModuleLinestory{}
}
func (this *ModuleLinestory) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
err = this.ModuleBase.Init(service, module, options)
return
}
func (this *ModuleLinestory) OnInstallComp() {
this.ModuleBase.OnInstallComp()
this.api = this.RegisterComp(new(apiComp)).(*apiComp)
this.modelLinestory = this.RegisterComp(new(ModelLinestory)).(*ModelLinestory)
this.configure = this.RegisterComp(new(configureComp)).(*configureComp)
}
func (this *ModuleLinestory) GetType() core.M_Modules {
return comm.ModuleLinestory
}