share.go 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. package msg
  2. import "leafstalk/covenant/model"
  3. type UserShareData struct {
  4. LaunchReward int `json:"launchReward"` //0:今日未领 1:今日已领
  5. ShareNum int64 `json:"shareNum"` // 今日已分享次数
  6. AddToDesk int `json:"addToDesk"` // 0:未添加 1:已添加
  7. }
  8. // DayLaunch 每日启动游戏
  9. type DayLaunch struct {
  10. PlayerId int64 `json:"userId"`
  11. ClientPlat string `json:"clientPlat"` //wx:微信 tt:抖音
  12. }
  13. type ResponseDayLaunch struct {
  14. ErrCode int `json:"errCode"`
  15. Msg string `json:"msg,omitempty"`
  16. Data *model.DropedBundle `json:"data"`
  17. }
  18. // VideoShare 视频分享
  19. type VideoShare struct {
  20. PlayerId int64 `json:"userId"`
  21. ClientPlat string `json:"clientPlat"` //wx:微信 tt:抖音
  22. }
  23. type ResponseVideoShare struct {
  24. ErrCode int `json:"errCode"`
  25. Msg string `json:"msg,omitempty"`
  26. Data *VideoShareData `json:"data"`
  27. }
  28. type VideoShareData struct {
  29. ShareNum int64 `json:"shareNum"` // 今日已分享次数
  30. Bundles *model.DropedBundle `json:"bundles"`
  31. }
  32. // AddToDesk 添加到桌面
  33. type AddToDesk struct {
  34. PlayerId int64 `json:"userId"`
  35. ClientPlat string `json:"clientPlat"` //wx:微信 tt:抖音
  36. }
  37. type ResponseAddToDesk struct {
  38. ErrCode int `json:"errCode"`
  39. Msg string `json:"msg,omitempty"`
  40. Data *model.DropedBundle `json:"data"`
  41. }