48 lines
1.1 KiB
Go
48 lines
1.1 KiB
Go
/*
|
|
模块名:atlas
|
|
描述:武馆图鉴模块
|
|
开发:梅雄风
|
|
*/
|
|
package atlas
|
|
|
|
import (
|
|
"go_dreamfactory/comm"
|
|
"go_dreamfactory/lego/core"
|
|
"go_dreamfactory/modules"
|
|
"go_dreamfactory/pb"
|
|
)
|
|
|
|
type PandaAtlas struct {
|
|
modules.ModuleBase
|
|
api *apiComp
|
|
configure *configureComp
|
|
modelPandaAtlas *modelPandaAtlas
|
|
service core.IService
|
|
}
|
|
|
|
func NewModule() core.IModule {
|
|
return &PandaAtlas{}
|
|
}
|
|
|
|
func (this *PandaAtlas) GetType() core.M_Modules {
|
|
return comm.ModuleSmithy
|
|
}
|
|
|
|
func (this *PandaAtlas) 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 *PandaAtlas) OnInstallComp() {
|
|
this.ModuleBase.OnInstallComp()
|
|
this.api = this.RegisterComp(new(apiComp)).(*apiComp)
|
|
this.configure = this.RegisterComp(new(configureComp)).(*configureComp)
|
|
this.modelPandaAtlas = this.RegisterComp(new(modelPandaAtlas)).(*modelPandaAtlas)
|
|
}
|
|
|
|
func (this *PandaAtlas) CheckActivateAtlasCollect(uid string, id string) (code pb.ErrorCode) {
|
|
|
|
return
|
|
}
|