pdd.ddk.goods.search.go 4.5 KB

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