上传表格配置

This commit is contained in:
liwei1dao 2023-10-26 17:57:11 +08:00
parent 87c9dbdbfa
commit 75491c82d4
2 changed files with 4 additions and 2 deletions

View File

@ -404,7 +404,9 @@ const (
//藏宝图 //藏宝图
TablekTreasuremap = "treasuremap" TablekTreasuremap = "treasuremap"
TableEntertainm = "entertainm" TableDcolor = "dcolor"
TablekCanineRabbit = "caninerabbit"
TableEntertainm = "entertainm"
) )
// RPC服务接口定义处 // RPC服务接口定义处

View File

@ -19,7 +19,7 @@ type modelComp struct {
func (this *modelComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) { 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) err = this.MCompModel.Init(service, module, comp, options)
this.TableName = comm.TablekfPushGiftbag this.TableName = comm.TableDcolor
this.DB.CreateIndex(core.SqlTable(this.TableName), mongo.IndexModel{ this.DB.CreateIndex(core.SqlTable(this.TableName), mongo.IndexModel{
Keys: bsonx.Doc{{Key: "uid", Value: bsonx.Int32(1)}}, Keys: bsonx.Doc{{Key: "uid", Value: bsonx.Int32(1)}},
}) })