pdd.ddk.goods.search.go 4.3 KB

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