pdd.ddk.goods.search.go 4.3 KB

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