pdd.ddk.goods.recommend.get.go 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. package pdd
  2. import "github.com/shopspring/decimal"
  3. type DdkGoodsRecommendGetRequest struct {
  4. PddDdkBase
  5. CatId string `json:"cat_id"` //猜你喜欢场景的商品类目,20100-百货,20200-母婴,20300-食品,20400-女装,20500-电器,20600-鞋包,20700-内衣,20800-美妆,20900-男装,21000-水果,21100-家纺,21200-文具,21300-运动,21400-虚拟,21500-汽车,21600-家装,21700-家具,21800-医药;
  6. ChannelType string `json:"channel_type"` //进宝频道推广商品: 1-今日销量榜,3-相似商品推荐,4-猜你喜欢(和进宝网站精选一致),5-实时热销榜,6-实时收益榜。默认值5
  7. Offset string `json:"offset"` //从多少位置开始请求;默认值 : 0,offset需是limit的整数倍,仅支持整页翻页
  8. Limit string `json:"limit"` //一页请求数量;默认值 : 20
  9. Pid string `json:"pid"` //推广位id
  10. }
  11. //type DdkGoodsRecommendGetResponse struct {
  12. //}
  13. type DdkGoodsRecommendGetResponse struct {
  14. GoodsBasicDetailResponse GoodsBasicDetailResponse `json:"goods_basic_detail_response"`
  15. }
  16. type List struct {
  17. CategoryName string `json:"category_name"`
  18. CouponRemainQuantity int `json:"coupon_remain_quantity"`
  19. PromotionRate int64 `json:"promotion_rate"`
  20. CatIds []int `json:"cat_ids"`
  21. CouponMinOrderAmount int `json:"coupon_min_order_amount"`
  22. CategoryID string `json:"category_id"`
  23. MallID int `json:"mall_id"`
  24. MallName string `json:"mall_name"`
  25. CouponTotalQuantity int `json:"coupon_total_quantity"`
  26. MerchantType string `json:"merchant_type"`
  27. LgstTxt string `json:"lgst_txt"`
  28. GoodsName string `json:"goods_name"`
  29. SalesTip string `json:"sales_tip"`
  30. GoodsID int64 `json:"goods_id"`
  31. PredictPromotionRate int `json:"predict_promotion_rate"`
  32. DescTxt string `json:"desc_txt"`
  33. GoodsDesc string `json:"goods_desc"`
  34. OptName string `json:"opt_name"`
  35. ShareRate int `json:"share_rate"`
  36. GoodsThumbnailURL string `json:"goods_thumbnail_url"`
  37. OptIds []int `json:"opt_ids"`
  38. OptID string `json:"opt_id"`
  39. GoodsImageURL string `json:"goods_image_url"`
  40. ActivityTags []int `json:"activity_tags"`
  41. HasCoupon bool `json:"has_coupon"`
  42. MinNormalPrice int `json:"min_normal_price"`
  43. ServTxt string `json:"serv_txt"`
  44. UnifiedTags []string `json:"unified_tags"`
  45. CouponStartTime int `json:"coupon_start_time"`
  46. MinGroupPrice int64 `json:"min_group_price"`
  47. CouponDiscount int64 `json:"coupon_discount"`
  48. GoodsSign string `json:"goods_sign"`
  49. CouponEndTime int `json:"coupon_end_time"`
  50. ExtraCouponAmount int `json:"extra_coupon_amount,omitempty"`
  51. MinAmount decimal.Decimal `json:"min_amount"`
  52. Rebate decimal.Decimal `json:"rebate"`
  53. }
  54. type GoodsBasicDetailResponse struct {
  55. Total int `json:"total"`
  56. List []List `json:"list"`
  57. RequestID string `json:"request_id"`
  58. }