1
This commit is contained in:
parent
7058327274
commit
45732f2f8a
14
server/wheelserver/mt/ShopGoods.go
Normal file
14
server/wheelserver/mt/ShopGoods.go
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
package mt
|
||||||
|
|
||||||
|
import (
|
||||||
|
"f5"
|
||||||
|
"main/mtb"
|
||||||
|
)
|
||||||
|
|
||||||
|
type ShopGoods struct {
|
||||||
|
mtb.ShopGoods
|
||||||
|
}
|
||||||
|
|
||||||
|
type ShopGoodsTable struct {
|
||||||
|
f5.IdMetaTable[ShopGoods]
|
||||||
|
}
|
@ -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"
|
||||||
|
})
|
||||||
|
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user