pdd.ddk.goods.search.go 4.3 KB

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