- GetDeliveryRangeByStationNo added.
This commit is contained in:
@@ -153,6 +153,19 @@ func (a *API) UpdateStoreConfig4Open(stationNo string, isAutoOrder bool) (bool,
|
||||
return result.(bool), nil
|
||||
}
|
||||
|
||||
// 获取门店配送范围接口
|
||||
// https://opendj.jd.com/staticnew/widgets/resources.html?groupid=194&apiid=8f6d0ac75d734c68bf5bd2a09f376a78
|
||||
func (a *API) GetDeliveryRangeByStationNo(stationNo string) (map[string]interface{}, error) {
|
||||
jdParams := map[string]interface{}{
|
||||
"stationNo": stationNo,
|
||||
}
|
||||
result, err := a.AccessAPINoPage("store/getDeliveryRangeByStationNo", jdParams, nil, nil, nil)
|
||||
if err == nil {
|
||||
return result.(map[string]interface{}), nil
|
||||
}
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// 私有函数
|
||||
func interface2CreateShopResult(data interface{}) (retVal *CreateShopResult) {
|
||||
if result, ok := data.(map[string]interface{}); ok {
|
||||
|
||||
Reference in New Issue
Block a user