京东商城

This commit is contained in:
苏尹岚
2020-06-04 09:58:20 +08:00
parent a71f902289
commit 6a4077f441
7 changed files with 47 additions and 18 deletions

View File

@@ -1,6 +1,9 @@
package jdshopapi
import "fmt"
import (
"encoding/json"
"fmt"
)
//订单出库
//https://open.jd.com/home/home#/doc/api?apiCateId=55&apiId=1948&apiName=jingdong.pop.order.shipment
@@ -17,3 +20,19 @@ func (a *API) OrderShipment(orderID int64, logiCoprId, logiNo string) (err error
}
return err
}
//获取商家物流公司
//https://open.jd.com/home/home#/doc/api?apiCateId=75&apiId=582&apiName=360buy.get.vender.all.delivery.company
func (a *API) GetDeliveryCompany() (result interface{}, err error) {
var params = map[string]interface{}{
"fields": "id,name",
}
data, _ := json.Marshal(params)
result, err = a.AccessAPI("360buy.get.vender.all.delivery.company", prodURL, map[string]interface{}{
"360buy_param_json": string(data),
})
if err == nil {
}
return result, err
}