Merge branch 'master' of e.coding.net:rosydev/baseapi

This commit is contained in:
邹宗楠
2023-01-10 16:26:26 +08:00
2 changed files with 5 additions and 2 deletions

View File

@@ -4,9 +4,12 @@ import doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/c
type SupermGetStoreAutoCallRiderResponse struct {
doudian_sdk.BaseDoudianOpApiResponse
Data *AutoCallInfo `json:"data"`
Data *SupermGetStoreAutoCallRiderData `json:"data"`
}
type SupermGetStoreAutoCallRiderData struct {
AutoCallInfo *AutoCallInfo `json:"autocall_info"`
}
type AutoCallInfo struct {
ServiceStatus int64 `json:"service_status"` //自动呼叫运力设置状态1关闭 2开启
ServiceType int64 `json:"service_type"` //自动呼叫运力策略; 0接单后立即呼叫 1接单后延迟呼叫

View File

@@ -85,7 +85,7 @@ func (a *API) GetStoreAutoCallRiderInfo(storeID int64) (*superm_getStoreAutoCall
if response.Code != RequestSuccessCode {
return nil, errors.New(response.SubMsg)
}
return response.Data, nil
return response.Data.AutoCallInfo, nil
}
// /superm/createVirtualMobile 隐私小号获取