data.go 1.5 KB

12345678910111213141516171819202122232425262728293031
  1. package google
  2. /*
  3. consumptionState : The consumption state of the inapp product. Possible values are: (0) Yet to be consumed (1) Consumed
  4. developerPayload : A developer-specified string that contains supplemental information about an order.
  5. kind : This kind represents an inappPurchase object in the androidpublisher service.
  6. orderId : The order id associated with the purchase of the inapp product.
  7. purchaseState : The purchase state of the order. Possible values are: (0) Purchased (1) Cancelled
  8. purchaseTimeMillis : The time the product was purchased, in milliseconds since the epoch (Jan 1, 1970).
  9. */
  10. type GoogleIAP struct {
  11. Kind string `json:"kind"`
  12. PurchaseTimeMillis string `json:"purchaseTimeMillis"`
  13. PurchaseState int `json:"purchaseState"`
  14. ConsumptionState int `json:"consumptionState"`
  15. OrderId string `json:"orderId"`
  16. DeveloperPayload string `json:"developerPayload"`
  17. AcknowledgementState int `json:"acknowledgementState"`
  18. ObfuscatedExternalAccountId string `json:"obfuscatedExternalAccountId"`
  19. RegionCode string `json:"regionCode"`
  20. }
  21. type Req_Google struct {
  22. UserID int `json:"UserID"` //用户ID
  23. ProductId string `json:"ProductId"` //产品ID
  24. Price int `json:"Price"` //价格
  25. PartnerID int `json:"PartnerID"` //渠道ID
  26. Token string `json:"Token"` //token
  27. PackageName string `json:"PackageName"` //PackeName
  28. }