generated from root/miduo_server
39 lines
1.6 KiB
Go
39 lines
1.6 KiB
Go
package gameinfo
|
|
|
|
import (
|
|
"github.com/gogf/gf/frame/g"
|
|
dao "gmanager/library/mongo"
|
|
)
|
|
|
|
type ServerInfo struct {
|
|
Id int `bson:"_id" json:"id"`
|
|
Name string `bson:"name" json:"name"`
|
|
Ip string `bson:"ip" json:"ip"`
|
|
Port string `bson:"port" json:"port"`
|
|
ServerId string `bson:"server_id" json:"serverid"`
|
|
Channel string `bson:"channel" json:"channel"`
|
|
SubChannel string `bson:"sub_channel" json:"subchannel"`
|
|
State string `bson:"state" json:"state"`
|
|
Plat string `bson:"plat" json:"plat"`
|
|
ChangeTime int64 `bson:"change_time" json:"changeTime"`
|
|
OpenTime string `bson:"open_time" json:"opentime"`
|
|
OpenType string `bson:"open_type" json:"opentype"`
|
|
IsNew string `bson:"is_new" json:"isnew"`
|
|
IsBanreg string `bson:"is_banreg" json:"isbanreg"`
|
|
IsWhite string `bson:"isWhite" json:"iswhite"`
|
|
ServerVersion string `bson:"server_version" json:"serverversion"`
|
|
GMIp string `bson:"gm_ip" json:"gmip"`
|
|
GMPort string `bson:"gm_port" json:"gmport"`
|
|
Timezone string `bson:"time_zone" json:"timezone"` // 时区
|
|
Currency string `bson:"currency" json:"currency"` // 币种
|
|
Exportdata string `bson:"exportdata" json:"exportdata"` // 是否导出数据
|
|
}
|
|
|
|
var (
|
|
// Table is the table name of account.
|
|
TableServer = "server_info"
|
|
ServerTablbeName = g.Config().GetString("db.core")
|
|
// Model is the model object of account.
|
|
ModelServer = dao.NewMgo(ServerTablbeName, TableServer)
|
|
)
|