diff --git a/server/wheelserver/mt/ShopGoods.go b/server/wheelserver/mt/ShopGoods.go new file mode 100644 index 00000000..5f7d5801 --- /dev/null +++ b/server/wheelserver/mt/ShopGoods.go @@ -0,0 +1,14 @@ +package mt + +import ( + "f5" + "main/mtb" +) + +type ShopGoods struct { + mtb.ShopGoods +} + +type ShopGoodsTable struct { + f5.IdMetaTable[ShopGoods] +} diff --git a/server/wheelserver/mt/export.go b/server/wheelserver/mt/export.go index 8164f581..b24c012d 100644 --- a/server/wheelserver/mt/export.go +++ b/server/wheelserver/mt/export.go @@ -16,6 +16,7 @@ type table struct { Task *TaskTable Buff *BuffTable MapGrid *MapGridTable + ShopGoods *ShopGoodsTable } var Table = f5.New(func(this *table) { @@ -74,4 +75,9 @@ var Table = f5.New(func(this *table) { this.PrimKey = "id" }) + this.ShopGoods = f5.New(func(this *ShopGoodsTable) { + this.FileName = "../res/shopGoods@shopGoods.json" + this.PrimKey = "goods_id" + }) + })