invite.go 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. package msg
  2. import "leafstalk/covenant/model"
  3. // 上报邀请好友
  4. type InviteFriend struct {
  5. PlayerId int64 `json:"userId"`
  6. Invitee int64 `json:"invitee"` //被邀请者
  7. // ClientPlat string `json:"clientPlat"`
  8. }
  9. // 发放被邀请奖励
  10. type SendInviteeReward struct {
  11. AccId int64 `json:"accId"`
  12. }
  13. // InviteProcess 邀请进度查看
  14. type InviteProcess struct {
  15. PlayerId int64 `json:"userId"`
  16. }
  17. type ResponseInviteProcess struct {
  18. ErrCode int `json:"errCode"`
  19. Msg string `json:"msg,omitempty"`
  20. Data *InviteProcessData `json:"data"`
  21. }
  22. type InviteProcessData struct {
  23. InviteNum int64 `json:"inviteNum"`
  24. Reward int64 `json:"reward"` //已领取奖励最大ID
  25. }
  26. // 领取奖励
  27. type InviteProcessReward struct {
  28. PlayerId int64 `json:"userId"`
  29. Reward int64 `json:"reward"` //取奖励最大ID
  30. }
  31. type ResponseInviteProcessReward struct {
  32. ErrCode int `json:"errCode"`
  33. Msg string `json:"msg,omitempty"`
  34. Data *InviteProcessRewardData `json:"data"`
  35. }
  36. type InviteProcessRewardData struct {
  37. Bundles model.DropedBundle `json:"bundles"`
  38. Reward int64 `json:"reward"` //取奖励最大ID
  39. }