pay.go 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. package msg
  2. // // 创建订单
  3. // type NewOrder struct {
  4. // PlayerID int64 `json:"userId"`
  5. // Platform int `json:"platform"` //微信:1; 抖音:2; quick: 3;
  6. // GoodsID int64 `json:"goodsId"`
  7. // PayMethod int `json:"midasPay"` //0:苹果游戏外微信支付 1:安卓游戏内支付 2:安卓游戏外微信支付 3:苹果游戏内支付
  8. // Level int `json:"level"`
  9. // OpenId string `json:"openId"`
  10. // ClientPlat string `json:"clientPlat"`
  11. // }
  12. // type ResponseNewOrder struct {
  13. // ErrCode int `json:"errCode"`
  14. // Msg string `json:"msg,omitempty"`
  15. // Data *NewOrderData `json:"data"`
  16. // }
  17. // type NewOrderData struct {
  18. // OrderID string `json:"orderID"`
  19. // Url string `json:"callUrl"`
  20. // }
  21. // // 取消订单
  22. // type CancleOrder struct {
  23. // PlayerID int64 `json:"userId"`
  24. // OrderID string `json:"orderID"`
  25. // Platform int `json:"platform"` // 购买平台 微信:1; 抖音:2 quick 3
  26. // ClientPlat string `json:"clientPlat"`
  27. // }
  28. // type ResponseCancleOrder struct {
  29. // ErrCode int `json:"errCode"`
  30. // Data string `json:"data"`
  31. // }
  32. // // 支付购买
  33. // type PayBuy struct {
  34. // PlayerID int64 `json:"userId"`
  35. // Platform int `json:"platform"` // 购买平台 微信:1; 抖音:2 quick 3
  36. // GoodsID int64 `json:"goodsId"`
  37. // OrderID string `json:"orderID"`
  38. // Level int `json:"level"`
  39. // Num int64 `json:"num"` //发送本消息次数
  40. // ClientPlat string `json:"clientPlat"`
  41. // }
  42. // type ResponsePayBuy struct {
  43. // ErrCode int `json:"errCode"`
  44. // Msg string `json:"msg,omitempty"`
  45. // Data *PayBuyData `json:"data"`
  46. // }
  47. // type PayBuyData struct {
  48. // GoodsId int64 `json:"goodsId"`
  49. // Diamond int `json:"diamond"`
  50. // Materials []*model.DropMaterial `json:"materials"`
  51. // Equipments []*model.DropEquipment `json:"equipments"`
  52. // Buffs *VipBuffData `json:"buffs"`
  53. // }