pdd.ddk.goods.detail.go 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. package pdd
  2. import "github.com/shopspring/decimal"
  3. type PddDdkGoodsDetailRequest struct {
  4. PddDdkBase
  5. GoodsSign string `json:"goods_sign"`
  6. SearchId string `json:"search_id"`
  7. Pid string `json:"pid"`
  8. }
  9. type PddDdkGoodsDetailResponse struct {
  10. GoodsDetailResponse GoodsDetailResponse `json:"goods_detail_response"`
  11. }
  12. type GoodsDetails struct {
  13. CategoryName string `json:"category_name"`
  14. CouponRemainQuantity int `json:"coupon_remain_quantity"`
  15. PromotionRate int64 `json:"promotion_rate"`
  16. ServiceTags []int `json:"service_tags"`
  17. MallID int `json:"mall_id"`
  18. MallName string `json:"mall_name"`
  19. MallCouponEndTime int `json:"mall_coupon_end_time"`
  20. LgstTxt string `json:"lgst_txt"`
  21. GoodsName string `json:"goods_name"`
  22. GoodsGalleryUrls []string `json:"goods_gallery_urls"`
  23. GoodsID int64 `json:"goods_id"`
  24. BrandName string `json:"brand_name"`
  25. PredictPromotionRate int `json:"predict_promotion_rate"`
  26. GoodsDesc string `json:"goods_desc"`
  27. OptName string `json:"opt_name"`
  28. ShareRate int `json:"share_rate"`
  29. OptIds []int `json:"opt_ids"`
  30. GoodsImageURL string `json:"goods_image_url"`
  31. MallImgURL string `json:"mall_img_url"`
  32. HasMallCoupon bool `json:"has_mall_coupon"`
  33. UnifiedTags []string `json:"unified_tags"`
  34. VideoUrls []interface{} `json:"video_urls"`
  35. CouponStartTime int `json:"coupon_start_time"`
  36. MinGroupPrice int64 `json:"min_group_price"`
  37. CouponDiscount int64 `json:"coupon_discount"`
  38. CouponEndTime int `json:"coupon_end_time"`
  39. ZsDuoID int `json:"zs_duo_id"`
  40. MallCouponRemainQuantity int `json:"mall_coupon_remain_quantity"`
  41. PlanType int `json:"plan_type"`
  42. CatIds []int `json:"cat_ids"`
  43. CouponMinOrderAmount int `json:"coupon_min_order_amount"`
  44. CategoryID int `json:"category_id"`
  45. MallCouponDiscountPct int `json:"mall_coupon_discount_pct"`
  46. CouponTotalQuantity int `json:"coupon_total_quantity"`
  47. MallCouponMinOrderAmount int `json:"mall_coupon_min_order_amount"`
  48. MerchantType int `json:"merchant_type"`
  49. SalesTip string `json:"sales_tip"`
  50. OnlySceneAuth bool `json:"only_scene_auth"`
  51. DescTxt string `json:"desc_txt"`
  52. GoodsThumbnailURL string `json:"goods_thumbnail_url"`
  53. OptID int `json:"opt_id"`
  54. HasCoupon bool `json:"has_coupon"`
  55. MinNormalPrice int `json:"min_normal_price"`
  56. MallCouponStartTime int `json:"mall_coupon_start_time"`
  57. ServTxt string `json:"serv_txt"`
  58. MallCouponTotalQuantity int `json:"mall_coupon_total_quantity"`
  59. MallCouponMaxDiscountAmount int `json:"mall_coupon_max_discount_amount"`
  60. MallCps int `json:"mall_cps"`
  61. GoodsSign string `json:"goods_sign"`
  62. MinAmount decimal.Decimal `json:"min_amount"`
  63. Rebate decimal.Decimal `json:"rebate"`
  64. }
  65. type GoodsDetailResponse struct {
  66. GoodsDetails []GoodsDetails `json:"goods_details"`
  67. RequestID string `json:"request_id"`
  68. }