1
This commit is contained in:
@@ -235,9 +235,10 @@ func TestUpdateSkuStore(t *testing.T) {
|
||||
SkuId: 1746278107578416,
|
||||
ProductId: 3576377564144516403,
|
||||
//OutProductId: 8076827,
|
||||
Incremental: false,
|
||||
IdempotentId: "",
|
||||
StockNum: 100,
|
||||
Incremental: false,
|
||||
IdempotentId: "",
|
||||
StockNum: 100,
|
||||
OutWarehouseId: "63114504",
|
||||
})
|
||||
fmt.Println(err)
|
||||
}
|
||||
|
||||
@@ -42,6 +42,7 @@ import (
|
||||
warehouse_createFence_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/warehouse_createFence/response"
|
||||
warehouse_list_request "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/warehouse_list/request"
|
||||
warehouse_list_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/warehouse_list/response"
|
||||
warehouse_unbindStore_request "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/warehouse_unbindStore/request"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
)
|
||||
@@ -396,6 +397,18 @@ func (a *API) QueryAllWarehouse(param *warehouse_list_request.WarehouseListParam
|
||||
}
|
||||
|
||||
// WarehouseUnbindStore 仓库解绑门店接口 /warehouse/unbindStore
|
||||
func (a *API) WarehouseUnbindStore() {
|
||||
func (a *API) WarehouseUnbindStore(storeId []int64, outWarehouseId string) error {
|
||||
request := warehouse_unbindStore_request.New()
|
||||
request.Param.StoreIds = storeId
|
||||
request.Param.OutWarehouseId = outWarehouseId
|
||||
|
||||
data, err := request.Execute(a.accessTokenObj)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if data.Code != RequestSuccessCode {
|
||||
return errors.New(data.SubMsg)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -102,3 +102,10 @@ func TestBindWarehouseToStore(t *testing.T) {
|
||||
fmt.Println(data)
|
||||
fmt.Println(err)
|
||||
}
|
||||
|
||||
// 仓库解绑门店
|
||||
func TestUnBindd(t *testing.T) {
|
||||
token := `{"access_token":"a1746210-a8a3-4497-a87b-09d1f10dbb95","expires_in":1665652230,"scope":"SCOPE","shop_id":"","shop_name":"小时达开放平台对接专用店","refresh_token":"c1cf8d88-0983-4f2a-b969-3746fae6b0cd","authority_id":""}`
|
||||
a := New("7136048270014416392", "c397aa9f-3927-47c4-8cfe-4d84e02602e0", token)
|
||||
a.WarehouseUnbindStore([]int64{63114504}, "666667")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user