1
This commit is contained in:
@@ -12,7 +12,7 @@ type SupermOrderDispatcherRequest struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *SupermOrderDispatcherRequest) GetUrlPath() string {
|
func (c *SupermOrderDispatcherRequest) GetUrlPath() string {
|
||||||
return "/superm/orderDispatcher"
|
return "/superm/shopOrderDispatcher"
|
||||||
}
|
}
|
||||||
|
|
||||||
func New() *SupermOrderDispatcherRequest {
|
func New() *SupermOrderDispatcherRequest {
|
||||||
@@ -45,7 +45,7 @@ func (c *SupermOrderDispatcherRequest) GetParams() *SupermOrderDispatcherParam {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type SupermOrderDispatcherParam struct {
|
type SupermOrderDispatcherParam struct {
|
||||||
StoreID int64 `json:"storeID"`
|
StoreID int64 `json:"store_id"`
|
||||||
ShopOrderID int64 `json:"shopOrderID"`
|
ShopOrderID string `json:"shop_order_id"`
|
||||||
DispatcherType int32 `json:"dispatcherType"`
|
DispatcherType int32 `json:"dispatcher_type"`
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,8 +36,8 @@ func (a *API) GetDispatcherInfo(storeID int64, shopOrderID string, dispatcherFee
|
|||||||
return response.Data.DispatcherFee, nil
|
return response.Data.DispatcherFee, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// /superm/orderDispatcher 呼叫运力并发货/重新发货、取消运力
|
// /superm/shopOrderDispatcher 呼叫运力并发货/重新发货、取消运力
|
||||||
func (a *API) OrderDispatcher(storeID, shopOrderID int64, dispatcherType int32) error {
|
func (a *API) ShopOrderDispatcher(storeID int64, shopOrderID string, dispatcherType int32) error {
|
||||||
request := superm_orderDispatcher_request.New()
|
request := superm_orderDispatcher_request.New()
|
||||||
request.Param = &superm_orderDispatcher_request.SupermOrderDispatcherParam{
|
request.Param = &superm_orderDispatcher_request.SupermOrderDispatcherParam{
|
||||||
StoreID: storeID,
|
StoreID: storeID,
|
||||||
|
|||||||
Reference in New Issue
Block a user