1
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user