From 1893e02abedfeeec4ed02cb3146de7fe7ce91bfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Sun, 9 Oct 2022 17:53:29 +0800 Subject: [PATCH 1/2] 1 --- business/partner/purchase/tiktok_store/warehouse.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/business/partner/purchase/tiktok_store/warehouse.go b/business/partner/purchase/tiktok_store/warehouse.go index a1df53819..fb0cee6bf 100644 --- a/business/partner/purchase/tiktok_store/warehouse.go +++ b/business/partner/purchase/tiktok_store/warehouse.go @@ -14,7 +14,7 @@ import ( ) // /warehouse/createBatch 批量创建区域仓 -func (P *PurchaseHandler) BatchCreateWarehouse(param warehouse_createBatch_request.WarehouseCreateBatchParam) error { +func (P *PurchaseHandler) BatchCreateWarehouse(param warehouse_createBatch_request.WarehouseCreateBatchParam, appOrgCode string) error { infos := []warehouse_createBatch_request.OutWarehouseListItem{} for _, v := range param.OutWarehouseList { info := warehouse_createBatch_request.OutWarehouseListItem{ @@ -30,7 +30,7 @@ func (P *PurchaseHandler) BatchCreateWarehouse(param warehouse_createBatch_reque OutWarehouseList: infos, } - resp, err := getAPI("", 0, "").BatchCreateWarehouse(req) + resp, err := getAPI(appOrgCode, 0, "").BatchCreateWarehouse(req) if err != nil { return err } @@ -41,12 +41,12 @@ func (P *PurchaseHandler) BatchCreateWarehouse(param warehouse_createBatch_reque } // /warehouse/bindStore 仓库绑定门店 -func (P *PurchaseHandler) BindStoreWarehouse(storeIDs []int64, outWarehouseID string) error { +func (P *PurchaseHandler) BindStoreWarehouse(storeIDs []int64, outWarehouseID, appOrgCode string) error { param := &warehouse_bindStore_request.WarehouseBindStoreParam{ StoreIds: storeIDs, OutWarehouseId: outWarehouseID, } - if _, err := getAPI("", 0, "").StoreBindWarehouse(param); err != nil { + if _, err := getAPI(appOrgCode, 0, "").StoreBindWarehouse(param); err != nil { return err } return nil From 9b5dfabb34aebe6c2469ac74e1f20d3a632f27f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Sun, 9 Oct 2022 18:01:19 +0800 Subject: [PATCH 2/2] 1 --- business/partner/purchase/tiktok_store/warehouse.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/business/partner/purchase/tiktok_store/warehouse.go b/business/partner/purchase/tiktok_store/warehouse.go index d09a78393..896da8b71 100644 --- a/business/partner/purchase/tiktok_store/warehouse.go +++ b/business/partner/purchase/tiktok_store/warehouse.go @@ -15,14 +15,14 @@ import ( ) // /warehouse/create 创建单个区域仓 -func (P *PurchaseHandler) CreateWarehouse(outWarehouseID string) (warehouseID int64, err error) { +func (P *PurchaseHandler) CreateWarehouse(outWarehouseID, appOrgCode string) (warehouseID int64, err error) { tempName := "门店编码:" + outWarehouseID + "的区域仓" req := &warehouse_create_request.WarehouseCreateParam{ OutWarehouseId: outWarehouseID, Name: tempName, Intro: "", } - resp, err := getAPI("", 0, "").CreateWarehouse(req) + resp, err := getAPI(appOrgCode, 0, "").CreateWarehouse(req) if err != nil { return 0, err }