luckgift.go 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. package msg
  2. import (
  3. "leafstalk/covenant/model"
  4. )
  5. // TriggerLuckGift 触发幸运礼包
  6. type TriggerLuckGift struct {
  7. ErrCode int `json:"errCode"`
  8. Msg string `json:"msg,omitempty"`
  9. Data TriggerLuckGiftData `json:"data"`
  10. }
  11. type TriggerLuckGiftData struct {
  12. Id int64 `json:"id"`
  13. CD int64 `json:"cd"`
  14. }
  15. // 获取触发的幸运礼包
  16. type TriggerLuckGiftInfo struct {
  17. PlayerId int64 `json:"userId"`
  18. }
  19. type ResponseTriggerLuckGiftInfo struct {
  20. ErrCode int `json:"errCode"`
  21. Msg string `json:"msg,omitempty"`
  22. Data map[int64]int64 `json:"data"` //礼包:CD
  23. }
  24. // 每日充值信息
  25. type DailyRechargeInfo struct {
  26. PlayerId int64 `json:"userId"`
  27. }
  28. type ResponseDailyRechargeInfo struct {
  29. ErrCode int `json:"errCode"`
  30. Msg string `json:"msg,omitempty"`
  31. Data map[int64]*DailyRechargeInfoData `json:"data"` // 档位 充值信息
  32. }
  33. type DailyRechargeInfoData struct {
  34. DaySum int64 `json:"daySum"` // 完成的天数
  35. ProcessReward int64 `json:"prcsReward"` // 领取的进度奖励
  36. RechargeNum int64 `json:"num"` // 最后一天充值金额
  37. DayReward int64 `json:"dayReward"` // 领取的日奖励
  38. }
  39. // 领取每日充值奖励
  40. type DailyRechargeReward struct {
  41. PlayerId int64 `json:"userId"`
  42. Level int64 `json:"level"`
  43. MaxDay int64 `json:"maxDay"` //已领取最大天数
  44. }
  45. type ResponseDailyRechargeReward struct {
  46. ErrCode int `json:"errCode"`
  47. Msg string `json:"msg,omitempty"`
  48. Data *DailyRechargeRewardData `json:"data"`
  49. }
  50. type DailyRechargeRewardData struct {
  51. Day int64 `json:"day"`
  52. Bundles *model.DropedBundle `json:"bundles"`
  53. }
  54. // 领取每日充值进度奖励
  55. type DailyRechargeProcessReward struct {
  56. PlayerId int64 `json:"userId"`
  57. Level int64 `json:"level"`
  58. MaxDay int64 `json:"maxDay"`
  59. }
  60. type ResponseDailyRechargeProcessReward struct {
  61. ErrCode int `json:"errCode"`
  62. Msg string `json:"msg,omitempty"`
  63. Data *DailyRechargeRewardData `json:"data"`
  64. }
  65. // 循环充值信息
  66. type CycleRechargeInfo struct {
  67. PlayerId int64 `json:"userId"`
  68. }
  69. type ResponseCycleRechargeInfo struct {
  70. ErrCode int `json:"errCode"`
  71. Msg string `json:"msg,omitempty"`
  72. Data *model.CycleRecharge `json:"data"`
  73. }
  74. // type CycleRecharge struct {
  75. // Sum int64 `json:"sum"` // 总充值钻石数
  76. // Num int64 `json:"num"` // 本轮累计充值钻石数
  77. // Reward int64 `json:"reward"` // 领取的最后一个奖励的档位
  78. // }
  79. // 领取循环充值奖励
  80. type CycleRechargeReward struct {
  81. PlayerId int64 `json:"userId"`
  82. Reward int64 `json:"reward"` //领取最大档位
  83. }
  84. type ResponseCycleRechargeReward struct {
  85. ErrCode int `json:"errCode"`
  86. Msg string `json:"msg,omitempty"`
  87. Data *CycleRechargeRewardData `json:"data"`
  88. }
  89. type CycleRechargeRewardData struct {
  90. Num int64 `json:"num"`
  91. Reward int64 `json:"reward"`
  92. Bundles *model.DropedBundle `json:"bundles"`
  93. }