| 12345678910111213141516171819202122232425262728293031323334353637 |
- 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"`
- 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)
- )
|