上传表格配置

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,6 +404,8 @@ const (
//藏宝图
TablekTreasuremap = "treasuremap"
TableDcolor = "dcolor"
TablekCanineRabbit = "caninerabbit"
TableEntertainm = "entertainm"
)

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) {
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{
Keys: bsonx.Doc{{Key: "uid", Value: bsonx.Int32(1)}},
})