ServerInfo.go 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. package gameinfo
  2. import (
  3. "github.com/gogf/gf/frame/g"
  4. dao "gmanager/library/mongo"
  5. )
  6. type ServerInfo struct {
  7. Id int `bson:"_id" json:"id"`
  8. Name string `bson:"name" json:"name"`
  9. Ip string `bson:"ip" json:"ip"`
  10. Port string `bson:"port" json:"port"`
  11. ServerId string `bson:"server_id" json:"serverid"`
  12. Channel string `bson:"channel" json:"channel"`
  13. SubChannel string `bson:"sub_channel" json:"subchannel"`
  14. State string `bson:"state" json:"state"`
  15. Plat string `bson:"plat" json:"plat"`
  16. OpenTime string `bson:"open_time" json:"opentime"`
  17. OpenType string `bson:"open_type" json:"opentype"`
  18. IsNew string `bson:"is_new" json:"isnew"`
  19. IsBanreg string `bson:"is_banreg" json:"isbanreg"`
  20. IsWhite string `bson:"isWhite" json:"iswhite"`
  21. ServerVersion string `bson:"server_version" json:"serverversion"`
  22. GMIp string `bson:"gm_ip" json:"gmip"`
  23. GMPort string `bson:"gm_port" json:"gmport"`
  24. Timezone string `bson:"time_zone" json:"timezone"` // 时区
  25. Currency string `bson:"currency" json:"currency"` // 币种
  26. Exportdata string `bson:"exportdata" json:"exportdata"` // 是否导出数据
  27. }
  28. var (
  29. // Table is the table name of account.
  30. TableServer = "server_info"
  31. ServerTablbeName = g.Config().GetString("db.core")
  32. // Model is the model object of account.
  33. ModelServer = dao.NewMgo(ServerTablbeName, TableServer)
  34. )