上传打地鼠代码修复
This commit is contained in:
parent
f569f249dc
commit
13334c6461
@ -20,6 +20,7 @@ type modelComp struct {
|
||||
|
||||
func (this *modelComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
|
||||
err = this.MCompModel.Init(service, module, comp, options)
|
||||
this.module = module.(*Whackamole)
|
||||
this.TableName = comm.TableWhackamole
|
||||
this.DB.CreateIndex(core.SqlTable(this.TableName), mongo.IndexModel{
|
||||
Keys: bsonx.Doc{{Key: "uid", Value: bsonx.Int32(1)}},
|
||||
|
Loading…
Reference in New Issue
Block a user