This commit is contained in:
aozhiwei 2024-11-25 11:21:50 +08:00
parent 7058327274
commit 45732f2f8a
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,14 @@
package mt
import (
"f5"
"main/mtb"
)
type ShopGoods struct {
mtb.ShopGoods
}
type ShopGoodsTable struct {
f5.IdMetaTable[ShopGoods]
}

View File

@ -16,6 +16,7 @@ type table struct {
Task *TaskTable Task *TaskTable
Buff *BuffTable Buff *BuffTable
MapGrid *MapGridTable MapGrid *MapGridTable
ShopGoods *ShopGoodsTable
} }
var Table = f5.New(func(this *table) { var Table = f5.New(func(this *table) {
@ -74,4 +75,9 @@ var Table = f5.New(func(this *table) {
this.PrimKey = "id" this.PrimKey = "id"
}) })
this.ShopGoods = f5.New(func(this *ShopGoodsTable) {
this.FileName = "../res/shopGoods@shopGoods.json"
this.PrimKey = "goods_id"
})
}) })