data.go 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. package game
  2. const dateFormat = "2006-01-02"
  3. type gameIndexInfo struct {
  4. DateFlag string
  5. TotalCount int
  6. WinCount int
  7. PlaySeconds int
  8. Players int
  9. TaxAmount int
  10. }
  11. type requestInfo struct {
  12. GameId int // 游戏ID
  13. TypeId int // 标签类型
  14. BeginTime string // 开始时间
  15. EndTime string // 截止时间
  16. PageIndex int // 页索引
  17. PageSize int // 页大小
  18. }
  19. // 牌局统计信息
  20. type cardStatInfo struct {
  21. DateFlag string // 日期标志
  22. GameID int // 游戏ID
  23. EnglishName string // 游戏名称
  24. PlayUserCount int // 游戏人数
  25. SendAmount int // 发放
  26. ConsumeAmount int // 消耗
  27. BreakUserCount int // 破产人数
  28. BreakTimes int // 破产次数
  29. PlayCount int // 游戏局数
  30. PlaySeconds int // 游戏时长
  31. MidwayUserCount int // 中途退出人数
  32. MidwayTimes int // 中途退出次数
  33. }
  34. // 中途退出统计信息
  35. type midwayStatInfo struct {
  36. DateFlag string // 日期标识
  37. GameID int // 游戏ID
  38. EnglishName string // 游戏名称
  39. SourceName string // 服务器名称
  40. PlayUserCount int // 游戏人数
  41. PlayCount int // 游戏局数
  42. MidwayUserCount int // 中途退出人数
  43. MidwayTimes int // 中途退出次数
  44. }
  45. // 水池统计信息
  46. type info struct {
  47. Rid int // 标识
  48. DateFlag string // 日期
  49. ItemType int `json:",omitempty"` // 项类型
  50. ItemName string // 项名称
  51. ItemValue string // 项值
  52. ItemTag int `json:",omitempty"` // 项标签
  53. }