pdd.ddk.goods.detail.go 3.7 KB

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