1
This commit is contained in:
parent
b1ddb2107a
commit
d0fa752a37
@ -6,9 +6,14 @@ import (
|
|||||||
|
|
||||||
type table struct {
|
type table struct {
|
||||||
WheelServerCluster *WheelServerClusterTable
|
WheelServerCluster *WheelServerClusterTable
|
||||||
Config *ConfigTable
|
Config *ConfigTable
|
||||||
Web3ServiceCluster *Web3ServiceClusterTable
|
Web3ServiceCluster *Web3ServiceClusterTable
|
||||||
WheelDb *WheelDbTable
|
WheelDb *WheelDbTable
|
||||||
|
Item *ItemTable
|
||||||
|
Friend *FriendTable
|
||||||
|
Global *GlobalTable
|
||||||
|
Reward *RewardTable
|
||||||
|
Task *TaskTable
|
||||||
}
|
}
|
||||||
|
|
||||||
var Table = f5.New(func(this *table) {
|
var Table = f5.New(func(this *table) {
|
||||||
@ -32,4 +37,29 @@ var Table = f5.New(func(this *table) {
|
|||||||
this.PrimKey = ""
|
this.PrimKey = ""
|
||||||
})
|
})
|
||||||
|
|
||||||
|
this.Item = f5.New(func(this *ItemTable) {
|
||||||
|
this.FileName = "../res/item@item.json"
|
||||||
|
this.PrimKey = "id"
|
||||||
|
})
|
||||||
|
|
||||||
|
this.Friend = f5.New(func(this *FriendTable) {
|
||||||
|
this.FileName = "../res/friend@friend.json"
|
||||||
|
this.PrimKey = "id"
|
||||||
|
})
|
||||||
|
|
||||||
|
this.Global = f5.New(func(this *GlobalTable) {
|
||||||
|
this.FileName = "../res/global@global.json"
|
||||||
|
this.PrimKey = "id"
|
||||||
|
})
|
||||||
|
|
||||||
|
this.Reward = f5.New(func(this *RewardTable) {
|
||||||
|
this.FileName = "../res/reward@reward.json"
|
||||||
|
this.PrimKey = ""
|
||||||
|
})
|
||||||
|
|
||||||
|
this.Task = f5.New(func(this *TaskTable) {
|
||||||
|
this.FileName = "../res/task@task.json"
|
||||||
|
this.PrimKey = "id"
|
||||||
|
})
|
||||||
|
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user