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