2023-11-08 10:48:10 +08:00

41 lines
884 B
Go

package mt
import (
"f5"
)
type table struct {
AdminCluster *AdminClusterTable
GameDb *GameDbTable
FriendDb *FriendDbTable
AccountDb *AccountDbTable
Config *ConfigTable
}
var Table = f5.New(func(this *table) {
this.AdminCluster = f5.New(func(this *AdminClusterTable) {
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.FriendDb = f5.New(func(this *FriendDbTable) {
this.FileName = "../config/frienddb.mysql.json"
this.PrimKey = ""
})
this.AccountDb = f5.New(func(this *AccountDbTable) {
this.FileName = "../config/accountdb.mysql.json"
this.PrimKey = ""
})
this.Config = f5.New(func(this *ConfigTable) {
this.FileName = "../config/config.json"
this.PrimKey = ""
})
})