pdd.ddk.goods.search.go 4.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. package pdd
  2. type PddDdkGoodsSearchRequest struct {
  3. ClientId string `json:"client_id"`
  4. Page string `json:"page"`
  5. Type string `json:"type"`
  6. Timestamp string `json:"timestamp"`
  7. DataType string `json:"data_type"`
  8. Sign string `json:"sign"`
  9. PageSize string `json:"page_size"`
  10. ListId string `json:"list_id"`
  11. ActivityTags string `json:"activity_tags"`
  12. WithCoupon string `json:"with_coupon"`
  13. }
  14. type PddDdkGoodsSearchResponse struct {
  15. GoodsSearchResponse GoodsSearchResponse `json:"goods_search_response"`
  16. }
  17. type GoodsList struct {
  18. ActivityPromotionRate int `json:"activity_promotion_rate"`
  19. ActivityTags []int `json:"activity_tags"`
  20. ActivityType int `json:"activity_type"`
  21. BrandName string `json:"brand_name"`
  22. CatIds []int `json:"cat_ids"`
  23. CltCpnBatchSn string `json:"clt_cpn_batch_sn"`
  24. CltCpnDiscount int `json:"clt_cpn_discount"`
  25. CltCpnEndTime int `json:"clt_cpn_end_time"`
  26. CltCpnMinAmt int `json:"clt_cpn_min_amt"`
  27. CltCpnQuantity int `json:"clt_cpn_quantity"`
  28. CltCpnRemainQuantity int `json:"clt_cpn_remain_quantity"`
  29. CltCpnStartTime int `json:"clt_cpn_start_time"`
  30. CouponDiscount int `json:"coupon_discount"`
  31. CouponEndTime int `json:"coupon_end_time"`
  32. CouponMinOrderAmount int `json:"coupon_min_order_amount"`
  33. CouponRemainQuantity int `json:"coupon_remain_quantity"`
  34. CouponStartTime int `json:"coupon_start_time"`
  35. CouponTotalQuantity int `json:"coupon_total_quantity"`
  36. CreateAt int `json:"create_at"`
  37. DescTxt string `json:"desc_txt"`
  38. ExtraCouponAmount int `json:"extra_coupon_amount"`
  39. GoodsDesc string `json:"goods_desc"`
  40. GoodsImageURL string `json:"goods_image_url"`
  41. GoodsLabels []int `json:"goods_labels"`
  42. GoodsName string `json:"goods_name"`
  43. GoodsSign string `json:"goods_sign"`
  44. GoodsThumbnailURL string `json:"goods_thumbnail_url"`
  45. HasCoupon bool `json:"has_coupon"`
  46. HasMallCoupon bool `json:"has_mall_coupon"`
  47. LgstTxt string `json:"lgst_txt"`
  48. MallCouponDiscountPct int `json:"mall_coupon_discount_pct"`
  49. MallCouponEndTime int `json:"mall_coupon_end_time"`
  50. MallCouponID int `json:"mall_coupon_id"`
  51. MallCouponMaxDiscountAmount int `json:"mall_coupon_max_discount_amount"`
  52. MallCouponMinOrderAmount int `json:"mall_coupon_min_order_amount"`
  53. MallCouponRemainQuantity int `json:"mall_coupon_remain_quantity"`
  54. MallCouponStartTime int `json:"mall_coupon_start_time"`
  55. MallCouponTotalQuantity int `json:"mall_coupon_total_quantity"`
  56. MallCps int `json:"mall_cps"`
  57. MallID int `json:"mall_id"`
  58. MallName string `json:"mall_name"`
  59. MerchantType int `json:"merchant_type"`
  60. MinGroupPrice int `json:"min_group_price"`
  61. MinNormalPrice int `json:"min_normal_price"`
  62. OnlySceneAuth bool `json:"only_scene_auth"`
  63. OptID int `json:"opt_id"`
  64. OptIds []int `json:"opt_ids"`
  65. OptName string `json:"opt_name"`
  66. PlanType int `json:"plan_type"`
  67. PredictPromotionRate int `json:"predict_promotion_rate"`
  68. PromotionRate int `json:"promotion_rate"`
  69. SalesTip string `json:"sales_tip"`
  70. SearchID string `json:"search_id"`
  71. ServTxt string `json:"serv_txt"`
  72. ServiceTags []int `json:"service_tags"`
  73. ShareRate int `json:"share_rate"`
  74. SubsidyAmount int `json:"subsidy_amount"`
  75. UnifiedTags []string `json:"unified_tags"`
  76. ZsDuoID int `json:"zs_duo_id"`
  77. }
  78. type GoodsSearchResponse struct {
  79. GoodsList []GoodsList `json:"goods_list"`
  80. ListID string `json:"list_id"`
  81. SearchID string `json:"search_id"`
  82. TotalCount int `json:"total_count"`
  83. }