pdd.ddk.goods.search.go 4.2 KB

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