hunttreasure.go 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. package msg
  2. import "leafstalk/covenant/model"
  3. // 寻宝信息
  4. type HuntTreasureInfo struct {
  5. PlayerId int64 `json:"userId"`
  6. //ActivityUId int64 `json:"activityUId"`
  7. }
  8. type ResponseHuntTreasureInfo struct {
  9. ErrCode int `json:"errCode"`
  10. Msg string `json:"msg,omitempty"`
  11. Data *HuntTreasureInfoData `json:"data"`
  12. }
  13. type HuntStatus struct {
  14. FreeHuntRemainTime int64 `json:"freeHuntRemainTime"` // 免费寻宝剩余时间
  15. HuntCount int64 `json:"huntCount"`
  16. ProcessReward int64 `json:"processReward"`
  17. LuckNum int64 `json:"luckNum"`
  18. }
  19. type HuntTreasureInfoData struct {
  20. ActivityUId int64 `json:"activityUId"` // 活动id
  21. RemainTime int64 `json:"remainTime"` // 活动剩余时间
  22. Days int64 `json:"days"` // 活动进行到第几天
  23. Hunt *HuntStatus `json:"hunt"` // 寻宝状态
  24. Supply *model.SupplyPrivilege2 `json:"supply"` // 补给状态
  25. Exchanges map[int64]int64 `json:"exchanges"` // 兑换状态
  26. Gift map[int64]int64 `json:"gift"` // 礼包状态
  27. }
  28. // 寻宝
  29. type HuntTreasure struct {
  30. PlayerId int64 `json:"userId"`
  31. //ActivityUId int64 `json:"activityUId"` // game协程中获取并传入
  32. Num int64 `json:"num"`
  33. Free int64 `json:"free"` //1:免费,0:不免费
  34. }
  35. type ResponseHuntTreasure struct {
  36. ErrCode int `json:"errCode"`
  37. Msg string `json:"msg,omitempty"`
  38. Data *HuntTreasureData `json:"data"`
  39. }
  40. type HuntTreasureData struct {
  41. Bundle *model.DropedBundle `json:"bundle"`
  42. Cost map[int64]int64 `json:"cost"`
  43. RewardsSort []int64 `json:"rewardsSort"`
  44. Hunt *HuntStatus `json:"hunt"`
  45. }
  46. // 寻宝进度奖励
  47. type HuntProcessReward struct {
  48. PlayerId int64 `json:"userId"`
  49. //ActivityUId int64 `json:"activityUId"`
  50. }
  51. type HuntProcessRewardData struct {
  52. Bundle *model.DropedBundle `json:"bundle"`
  53. Hunt *HuntStatus `json:"hunt"`
  54. }
  55. type ResponseHuntProcessReward struct {
  56. ErrCode int `json:"errCode"`
  57. Msg string `json:"msg,omitempty"`
  58. Data *HuntProcessRewardData `json:"data"`
  59. }
  60. // 寻宝补给信息
  61. //type HuntTreasureSupplyInfo struct {
  62. // PlayerId int64 `json:"userId"`
  63. // ActivitySet int64 `json:"activitySet"`
  64. //}
  65. //
  66. //type HuntTreasureSupplyInfoData struct {
  67. // FreeDay int64 `json:"freeDay"` // 免费已签到天数
  68. // SeniorDay int64 `json:"seniorDay"` // 高级已签到天数
  69. // IsSenior int64 `json:"isSenior"` // 是否购买高级基金 0:未购买,1:已购买
  70. //}
  71. //
  72. //type ResponseHuntTreasureSupplyInfo struct {
  73. // ErrCode int `json:"errCode"`
  74. // Msg string `json:"msg,omitempty"`
  75. // Data *HuntTreasureSupplyInfoData `json:"data"`
  76. //}
  77. // 寻宝补给
  78. type HuntTreasureSupply struct {
  79. PlayerId int64 `json:"userId"`
  80. }
  81. type HuntTreasureSupplyData struct {
  82. Bundle *model.DropedBundle `json:"bundle"`
  83. Supply *model.SupplyPrivilege2 `json:"supply"` // 补给状态
  84. }
  85. type ResponseHuntTreasureSupply struct {
  86. ErrCode int `json:"errCode"`
  87. Msg string `json:"msg,omitempty"`
  88. Data *HuntTreasureSupplyData `json:"data"`
  89. }
  90. // 寻宝兑换信息
  91. //type HuntTreasureExchangeInfo struct {
  92. // PlayerId int64 `json:"userId"`
  93. //}
  94. //
  95. //type ResponseHuntTreasureExchangeInfo struct {
  96. // ErrCode int `json:"errCode"`
  97. // Msg string `json:"msg,omitempty"`
  98. // Data *TreasureLevelUpData `json:"data"`
  99. //}
  100. // 寻宝兑换
  101. type HuntTreasureExchange struct {
  102. PlayerId int64 `json:"userId"`
  103. Uid int64 `json:"uid"`
  104. Num int64 `json:"num"`
  105. }
  106. type HuntTreasureExchangeData struct {
  107. Bundle *model.DropedBundle `json:"bundle"`
  108. Cost map[int64]int64 `json:"cost"`
  109. Exchanges map[int64]int64 `json:"exchanges"` // 兑换状态
  110. }
  111. type ResponseHuntTreasureExchange struct {
  112. ErrCode int `json:"errCode"`
  113. Msg string `json:"msg,omitempty"`
  114. Data *HuntTreasureExchangeData `json:"data"`
  115. }
  116. // 礼包购买
  117. type HuntTreasureBuyGift struct {
  118. PlayerId int64 `json:"userId"`
  119. Num int64 `json:"num"`
  120. Index int64 `json:"index"`
  121. }
  122. type HuntTreasureBuyGiftData struct {
  123. Bundle *model.DropedBundle `json:"bundle"`
  124. Cost map[int64]int64 `json:"cost"`
  125. Gift map[int64]int64 `json:"gift"` // 礼包状态
  126. }
  127. type ResponseHuntTreasureBuyGift struct {
  128. ErrCode int `json:"errCode"`
  129. Msg string `json:"msg,omitempty"`
  130. Data *HuntTreasureBuyGiftData `json:"data"`
  131. }