1
This commit is contained in:
@@ -30,10 +30,10 @@ const (
|
||||
)
|
||||
|
||||
// /warehouse/create 创建单个区域仓
|
||||
func CreateWarehouse(appOrgCode string, storeID int64) (warehouseID string, err error) {
|
||||
func CreateWarehouse(appOrgCode string, storeID int64) (warehouseID int64, err error) {
|
||||
storeDetail, err := dao.GetStoreDetail(dao.GetDB(), int(storeID), 0, "")
|
||||
if err != nil {
|
||||
return "", fmt.Errorf("获取门店本地信息失败:%v", err)
|
||||
return 0, fmt.Errorf("获取门店本地信息失败:%v", err)
|
||||
}
|
||||
resp, err := getAPI(appOrgCode, 0, "").CreateWarehouse(&warehouse_create_request.WarehouseCreateParam{
|
||||
OutWarehouseId: utils.Int64ToStr(storeID), //本地storeID绑定
|
||||
@@ -50,7 +50,7 @@ func CreateWarehouse(appOrgCode string, storeID int64) (warehouseID string, err
|
||||
},
|
||||
})
|
||||
if err != nil {
|
||||
return "", fmt.Errorf("创建单个区域仓失败:%v", err)
|
||||
return 0, fmt.Errorf("创建单个区域仓失败:%v", err)
|
||||
}
|
||||
return resp.WarehouseId, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user