rankItem.go 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. package rank
  2. import (
  3. item "bet24.com/servers/micros/item_inventory/proto"
  4. userservices "bet24.com/servers/micros/userservices/proto"
  5. )
  6. const (
  7. _ = iota
  8. RankType_wealth // 1=财富榜
  9. RankType_win_day // 2=每日赢金榜
  10. RankType_win_week // 3=每周赢金榜
  11. RankType_win_month // 4=每月赢金榜
  12. RankType_badge // 5=徽章排行榜
  13. RankType_audioRoom_thisWeek // 6=语聊房本周榜
  14. RankType_audioRoom_lastWeek // 7=语聊房上周榜
  15. RankType_charm_day // 8=魅力日榜
  16. RankType_charm_week // 9=魅力周榜
  17. RankType_charm_month // 10=魅力月榜
  18. RankType_audioRoom_sendGiving_day // 11=语聊房赠送礼物日榜
  19. RankType_audioRoom_sendGiving_week // 12=语聊房赠送礼物周榜
  20. RankType_audioRoom_sendGiving_month // 13=语聊房赠送礼物月榜
  21. RankType_audioRoom_receiveGiving_day // 14=语聊房接收礼物日榜
  22. RankType_audioRoom_receiveGiving_week // 15=语聊房接收礼物周榜
  23. RankType_audioRoom_receiveGiving_month // 16=语聊房接收礼物月榜
  24. RankType_audioRoom_consumeDiamond_day // 17=语聊房房间消耗钻石日榜
  25. RankType_audioRoom_consumeDiamond_week // 18=语聊房房间消耗钻石周榜
  26. RankType_audioRoom_consumeDiamond_month // 19=语聊房房间消耗钻石月榜
  27. RankType_friendRoom_winCount_day // 20=好友房赢局数日榜
  28. RankType_friendRoom_winCount_week // 21=好友房赢局数周榜
  29. RankType_Max //
  30. )
  31. // 荣誉徽章榜单数组
  32. var badgeRankArray = []int{RankType_win_week,
  33. RankType_audioRoom_lastWeek,
  34. RankType_audioRoom_sendGiving_week,
  35. RankType_audioRoom_receiveGiving_week,
  36. RankType_audioRoom_consumeDiamond_week}
  37. const (
  38. Award_Invalid = iota // 0=无效
  39. Award_Available // 1=可领取
  40. Award_Received // 2=已领取
  41. )
  42. type rankItem struct {
  43. RankType int // 类型
  44. Rank int // 名次
  45. Amount int // 数量
  46. IsFriend int // 是否好友
  47. userservices.UserHotInfo
  48. AwardItem
  49. crdate string
  50. }
  51. type AwardItem struct {
  52. Amount int // 金额
  53. IsGift int `json:"IsGift,omitempty"` // 是否领取(0=无效 1=可领取 2=已领取)
  54. Awards []item.ItemPack
  55. }
  56. // 榜单历史
  57. type rankHistoryItem struct {
  58. Rank int // 名次
  59. UserId int // 用户ID
  60. NickName string // 昵称
  61. Amount int // 数量
  62. FaceID int // 头像ID
  63. FaceUrl string // 头像URL
  64. Sex int // 性别
  65. UserWords string // 用户签名
  66. VipLevel int // Vip等级
  67. }