40 lines
764 B
Go
40 lines
764 B
Go
package pay
|
|
|
|
import (
|
|
"go_dreamfactory/comm"
|
|
"go_dreamfactory/lego/core"
|
|
"go_dreamfactory/modules"
|
|
)
|
|
|
|
/*
|
|
模块名:支付系统
|
|
描述:充值商城
|
|
开发:李伟
|
|
*/
|
|
func NewModule() core.IModule {
|
|
m := new(Pay)
|
|
return m
|
|
}
|
|
|
|
type Pay struct {
|
|
modules.ModuleBase
|
|
configure *configureComp
|
|
}
|
|
|
|
//模块名
|
|
func (this *Pay) GetType() core.M_Modules {
|
|
return comm.ModulePay
|
|
}
|
|
|
|
//模块初始化接口 注册用户创建角色事件
|
|
func (this *Pay) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
|
err = this.ModuleBase.Init(service, module, options)
|
|
return
|
|
}
|
|
|
|
//装备组件
|
|
func (this *Pay) OnInstallComp() {
|
|
this.ModuleBase.OnInstallComp()
|
|
this.configure = this.RegisterComp(new(configureComp)).(*configureComp)
|
|
}
|