pdd.ddk.goods.search.go 5.0 KB

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