52 lines
1.1 KiB
Go
52 lines
1.1 KiB
Go
package warorder
|
|
|
|
import (
|
|
"go_dreamfactory/comm"
|
|
"go_dreamfactory/lego/core"
|
|
"go_dreamfactory/modules"
|
|
"go_dreamfactory/pb"
|
|
)
|
|
|
|
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)
|
|
}
|
|
|
|
// 发货
|
|
func (this *Warorder) Delivery(session comm.IUserSession, pid string) (errdata *pb.ErrorData, items []*pb.UserAssets) {
|
|
|
|
return
|
|
}
|