package warorder import ( "go_dreamfactory/comm" "go_dreamfactory/lego/core" "go_dreamfactory/modules" ) const modulename = "战令" type Warorder struct { modules.ModuleBase service core.IService api *apiComp configure *configureComp modelWarorder *modelWarorder } func NewModule() core.IModule { return &Warorder{} } func (this *Warorder) GetType() core.M_Modules { return comm.ModuleWarorder } func (this *Warorder) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) { err = this.ModuleBase.Init(service, module, options) this.service = service return } func (this *Warorder) Start() (err error) { err = this.ModuleBase.Start() return } func (this *Warorder) OnInstallComp() { this.ModuleBase.OnInstallComp() this.api = this.RegisterComp(new(apiComp)).(*apiComp) this.modelWarorder = this.RegisterComp(new(modelWarorder)).(*modelWarorder) this.configure = this.RegisterComp(new(configureComp)).(*configureComp) }