sevendayac.go 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. package msg
  2. import "leafstalk/covenant/model"
  3. // 获取7天活动状态
  4. type GetSevenDayActivitiesStatus struct {
  5. PlayerId int64 `json:"userId"`
  6. }
  7. type GetSevenDayActivitiesStatusData struct {
  8. RemainTime int64 `json:"remainTime"` // 剩余时间
  9. UnlockDays int64 `json:"unlockDays"` // 已解锁天数
  10. TotalPoint int64 `json:"totalPoint"` // 总积分
  11. ChallengeAwards map[int64]*model.ChallengeTaskStatus `json:"challengeAwards"` // 任务完成状态 {taskType:任务状态}
  12. GiftAwards map[int64]int64 `json:"giftAwards"` // 礼包购买状态 {uid:购买次数}
  13. PointAward int64 `json:"pointAward"` // 积分奖励领取状态 0:未领取 1:已领取
  14. }
  15. type ResponseGetSevenDayActivitiesStatus struct {
  16. ErrCode int `json:"errCode"`
  17. Msg string `json:"msg,omitempty"`
  18. Data *GetSevenDayActivitiesStatusData `json:"data"`
  19. }
  20. // 领取7天活动奖励
  21. type ClaimSevenDayMissionReward struct {
  22. PlayerId int64 `json:"userId"`
  23. Uid int64 `json:"uid"`
  24. }
  25. type ClaimSevenDayMissionRewardData struct {
  26. Bundles *model.DropedBundle `json:"bundles"`
  27. Status *GetSevenDayActivitiesStatusData `json:"status"`
  28. }
  29. type ResponseClaimSevenDayMissionReward struct {
  30. ErrCode int `json:"errCode"`
  31. Msg string `json:"msg,omitempty"`
  32. Data *ClaimSevenDayMissionRewardData `json:"data"`
  33. }
  34. // 购买7日礼包
  35. type BuySevenDayGiftPack struct {
  36. PlayerId int64 `json:"userId"`
  37. Uid int64 `json:"uid"`
  38. }
  39. type BuySevenDayGiftPackData struct {
  40. Bundles *model.DropedBundle `json:"bundles"`
  41. Costs map[int64]int64 `json:"costs"`
  42. Status *GetSevenDayActivitiesStatusData `json:"status"`
  43. }
  44. type ResponseBuySevenDayGiftPack struct {
  45. ErrCode int `json:"errCode"`
  46. Msg string `json:"msg,omitempty"`
  47. Data *BuySevenDayGiftPackData `json:"data"`
  48. }
  49. // 领取积分奖励
  50. type ClaimSevenDayActiveReward struct {
  51. PlayerId int64 `json:"userId"`
  52. }
  53. type ClaimSevenDayActiveRewardData struct {
  54. Bundles *model.DropedBundle `json:"bundles"`
  55. Status *GetSevenDayActivitiesStatusData `json:"status"`
  56. }
  57. type ResponseClaimSevenDayActiveReward struct {
  58. ErrCode int `json:"errCode"`
  59. Msg string `json:"msg,omitempty"`
  60. Data *ClaimSevenDayActiveRewardData `json:"data"`
  61. }
  62. // 7日任务进度更新
  63. type Update7DayMissionProgress struct {
  64. PlayerId int64 `json:"userId"`
  65. // 任务类型
  66. TaskType int64 `json:"taskType"`
  67. // 任务进度
  68. Progress int64 `json:"progress"`
  69. }