53 lines
1.2 KiB
Go
53 lines
1.2 KiB
Go
package mt
|
|
|
|
import (
|
|
"f5"
|
|
)
|
|
|
|
type table struct {
|
|
GameServiceCluster *GameServiceClusterTable
|
|
GameDb *GameDbTable
|
|
BcEventDb *BcEventDbTable
|
|
BcNftDb *BcNftDbTable
|
|
Config *ConfigTable
|
|
RankSeason *RankSeasonTable
|
|
HashRateCommon *HashRateCommonTable
|
|
}
|
|
|
|
var Table = f5.New(func(this *table) {
|
|
this.GameServiceCluster = f5.New(func(this *GameServiceClusterTable) {
|
|
this.FileName = "../config/adminserver.cluster.json"
|
|
this.PrimKey = "instance_id"
|
|
})
|
|
|
|
this.GameDb = f5.New(func(this *GameDbTable) {
|
|
this.FileName = "../config/gamedb.mysql.json"
|
|
this.PrimKey = ""
|
|
})
|
|
|
|
this.BcEventDb = f5.New(func(this *BcEventDbTable) {
|
|
this.FileName = "../config/bceventdb.mysql.json"
|
|
this.PrimKey = ""
|
|
})
|
|
|
|
this.BcNftDb = f5.New(func(this *BcNftDbTable) {
|
|
this.FileName = "../config/bcnftdb.mysql.json"
|
|
this.PrimKey = ""
|
|
})
|
|
|
|
this.Config = f5.New(func(this *ConfigTable) {
|
|
this.FileName = "../config/config.json"
|
|
this.PrimKey = ""
|
|
})
|
|
|
|
this.RankSeason = f5.New(func(this *RankSeasonTable) {
|
|
this.FileName = "../res/rankSeason@rankSeason.json"
|
|
this.PrimKey = "id"
|
|
})
|
|
|
|
this.HashRateCommon = f5.New(func(this *HashRateCommonTable) {
|
|
this.FileName = "../res/HashrateCommon@HashrateCommon.json"
|
|
this.PrimKey = "id"
|
|
})
|
|
})
|