第三方api接口
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

pirms 1 gada
12345678910111213141516171819
  1. package jd
  2. // Guess is 猜你喜欢 https://open.jd.com/home/home#/doc/api?apiCateId=461&apiId=5479&apiName=jd.union.open.goods.material.query
  3. func Guess(r *RequestJD) ([]byte, error) {
  4. method := "jd.union.open.goods.material.query"
  5. args := map[string]interface{}{
  6. "pageIndex": r.PageIndex,
  7. "pageSize": r.PageSize,
  8. // 1-好券商品,2-精选卖场,10-9.9包邮,15-京东配送,22-实时热销榜,23-为你推荐,24-数码家电,25-超市,26-母婴玩具,27-家具日用,28-美妆穿搭,29-医药保健,30-图书文具,31-今日必推,32-京东好物,33-京东秒杀,34-拼购商品,40-高收益榜,41-自营热卖榜,109-新品首发,110-自营,112-京东爆品,125-首购商品,129-高佣榜单,130-视频商品,153-历史最低价商品榜
  9. "eliteId": r.EliteID,
  10. // 排序字段(price:单价, commissionShare:佣金比例, commission:佣金, inOrderCount30DaysSku:sku维度30天引单量,comments:评论数,goodComments:好评数)
  11. "sortName": r.SortName,
  12. }
  13. if r.UserIDType != 0 && r.UserID != "" {
  14. args["userIdType"] = r.UserIDType
  15. args["userId"] = r.UserID
  16. }
  17. return send(method, args)
  18. }