第三方api接口
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

84 lines
2.8 KiB

  1. package csjp
  2. type CsjpOrder struct {
  3. OrderId string `json:"order_id"`
  4. Status int `json:"status"`
  5. PayAmount int `json:"pay_amount"`
  6. PayTime int `json:"pay_time"`
  7. UpdateTime int `json:"update_time"`
  8. PoiInfo struct {
  9. Name string `json:"name"`
  10. PoiId int64 `json:"poi_id"`
  11. } `json:"poi_info"`
  12. RefundAmount int `json:"refund_amount"`
  13. RootOrderId string `json:"root_order_id"`
  14. ProductList []struct {
  15. ProductId int64 `json:"product_id"`
  16. SkuId int64 `json:"sku_id"`
  17. Name string `json:"name"`
  18. Count int `json:"count"`
  19. Img string `json:"img"`
  20. } `json:"product_list"`
  21. SettleOrders interface{} `json:"settle_orders"`
  22. MediaId int `json:"media_id"`
  23. AppId int `json:"app_id"`
  24. Pid string `json:"pid"`
  25. CommandExternalInfo string `json:"command_external_info"`
  26. CommissionRate int `json:"commission_rate"`
  27. CommissionAmount int `json:"commission_amount"`
  28. SettleFinish bool `json:"settle_finish"`
  29. SettleAmount int `json:"settle_amount"`
  30. }
  31. type CsjpProductList struct {
  32. Id int64 `json:"id"`
  33. Name string `json:"name"`
  34. Type int `json:"type"`
  35. ProductImg struct {
  36. UrlList []string `json:"url_list"`
  37. } `json:"product_img"`
  38. ProductItemDetail []struct {
  39. Title string `json:"title"`
  40. ItemList []struct {
  41. Name string `json:"name"`
  42. Price int `json:"price"`
  43. Count int `json:"count"`
  44. Unit string `json:"unit"`
  45. } `json:"item_list"`
  46. } `json:"product_item_detail,omitempty"`
  47. SaleTags []string `json:"sale_tags"`
  48. Price int `json:"price"`
  49. OriginPrice int `json:"origin_price"`
  50. MarketingInfo struct {
  51. SeckillInfo struct {
  52. Status int `json:"status"`
  53. StartTime int `json:"start_time"`
  54. EndTime int `json:"end_time"`
  55. DiscountAmount int `json:"discount_amount"`
  56. } `json:"seckill_info,omitempty"`
  57. } `json:"marketing_info"`
  58. BlurredSoldCount string `json:"blurred_sold_count"`
  59. SellOut bool `json:"sell_out"`
  60. FirstCategory struct {
  61. Id int `json:"id"`
  62. Name string `json:"name"`
  63. } `json:"first_category"`
  64. SecondCategory struct {
  65. Id int `json:"id"`
  66. Name string `json:"name"`
  67. } `json:"second_category"`
  68. ThirdCategory struct {
  69. Id int `json:"id"`
  70. Name string `json:"name"`
  71. } `json:"third_category"`
  72. SoldTimeBegin int `json:"sold_time_begin"`
  73. SoldTimeEnd int `json:"sold_time_end"`
  74. NearestPoi struct {
  75. Name string `json:"name"`
  76. Distance float64 `json:"distance"`
  77. } `json:"nearest_poi"`
  78. PoiCount int `json:"poi_count"`
  79. DyH5Url string `json:"dy_h5_url"`
  80. CommissionRate int `json:"commission_rate"`
  81. CommissionAmount int `json:"commission_amount"`
  82. }