1
This commit is contained in:
@@ -45,7 +45,7 @@ func (c *SupermGetDispatcherInfoRequest) GetParams() *SupermGetDispatcherInfoPar
|
||||
}
|
||||
|
||||
type SupermGetDispatcherInfoParam struct {
|
||||
StoreID int64 `json:"storeID"`
|
||||
ShopOrderID int64 `json:"shopOrderID"`
|
||||
DispatcherType int32 `json:"dispatcherType"`
|
||||
StoreID int64 `json:"store_id"`
|
||||
ShopOrderID string `json:"shop_order_id"`
|
||||
DispatcherFeeType int32 `json:"dispatcher_fee_type"`
|
||||
}
|
||||
|
||||
@@ -8,5 +8,5 @@ type SupermGetDispatcherInfoResponse struct {
|
||||
}
|
||||
|
||||
type SupermGetDispatcherInfoData struct {
|
||||
DispatcherFee int64 `json:"dispatcherFee"` //呼叫运力费用,单位 分
|
||||
DispatcherFee int64 `json:"dispatcher_fee"` //呼叫运力费用,单位 分
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ import (
|
||||
// "authority_id": ""
|
||||
//}`
|
||||
|
||||
var token = `{"access_token":"fedd73ba-cf87-4c27-bd9d-5f2a68e5b9fe","expires_in":1672033612,"scope":"SCOPE","shop_id":57939570,"shop_name":"京西菜市速食","refresh_token":"3ec7f275-51a5-44c7-8324-060318139893","authority_id":""}`
|
||||
var token = `{"access_token":"84b9ab00-68d0-4b9f-9682-a03f75eaed95","expires_in":1672634978,"scope":"SCOPE","shop_id":57939570,"shop_name":"京西菜市速食","refresh_token":"44b1e11e-90a0-4876-b5f9-edd2bf5820e8","authority_id":""}`
|
||||
|
||||
//var token = `{"access_token":"83e52462-ad46-4297-98c4-242ee6b7a5c8","expires_in":1672033612,"scope":"SCOPE","shop_id":63141688,"shop_name":"二期-抖音超市小时达测试店铺","refresh_token":"8f690bc3-3f3e-49bd-bbf7-31c9e868e980","authority_id":""}`
|
||||
var a = New("7136048270014416392", "c397aa9f-3927-47c4-8cfe-4d84e02602e0", token)
|
||||
|
||||
@@ -16,12 +16,12 @@ import (
|
||||
)
|
||||
|
||||
// /superm/getDispatcherInfo 运力呼叫询价/运力取消询价(正向)
|
||||
func (a *API) GetDispatcherInfo(storeID, shopOrderID int64, dispatcherType int32) (int64, error) {
|
||||
func (a *API) GetDispatcherInfo(storeID int64, shopOrderID string, dispatcherFeeType int32) (int64, error) {
|
||||
request := superm_getDispatcherInfo_request.New()
|
||||
request.Param = &superm_getDispatcherInfo_request.SupermGetDispatcherInfoParam{
|
||||
StoreID: storeID,
|
||||
ShopOrderID: shopOrderID,
|
||||
DispatcherType: dispatcherType,
|
||||
StoreID: storeID,
|
||||
ShopOrderID: shopOrderID,
|
||||
DispatcherFeeType: dispatcherFeeType,
|
||||
}
|
||||
response, err := request.Execute(a.accessTokenObj)
|
||||
globals.SugarLogger.Debugf("运力呼叫询价/运力取消询价(正向)=========:%s", request.GetUrlPath())
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
|
||||
//运力呼叫询价(正向)
|
||||
func TestGetDispatcherInfo(t *testing.T) {
|
||||
dispatcherFee, err := a.GetDispatcherInfo(5015175317880528282, 5015175317880528282, 1)
|
||||
dispatcherFee, err := a.GetDispatcherInfo(62490423, "5016270839501385439", 1)
|
||||
fmt.Println(dispatcherFee)
|
||||
fmt.Println(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user