Authored by liqingzhong

Merge branch 'develop' of http://git.dev.yoho.cn/platform/yohobuy-doc into develop

... ... @@ -478,3 +478,145 @@
}
```
## 下载文件
> 接口名: '/batch/download?path= ***'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|path|字符串|文件链接|必填|
---------------------
### 返回
```
文件流
```
## 批量上传变价文本
> 接口名: '/batch/import'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|file|文件|文件流|必填|
|type|字符串|price|必填|
---------------------
### 返回 (备注:failFileReason 是失败的原因, succesList成功的列表 newProductPriceBo代表表格中的新数据 oldProductPriceBo代表数据库中的旧记录 )
```
{
"code": 200,
"data": {
"failFileReason": [
"第2行:对应的skn不存在数据库中;",
"第3行:非代销商品;",
"第5行:固定折扣,填写VIP价;",
"第7行:固定折扣,填写VIP价;",
"第9行:固定折扣,填写VIP价;",
"第10行:固定折扣,填写VIP价;",
"第11行:固定折扣,填写VIP价;",
"第12行:固定折扣,填写VIP价;"
],
"succesList": [
{
"newProductPriceBo": {
"product_skn": 50000082,
"retail_price": 298,
"return_coin": 1111,
"sales_price": 22,
"vip_discount_type": 4,
"vip_price": 260
},
"oldProductPriceBo": {
"product_skn": 50000082,
"retail_price": 298,
"return_coin": 0,
"sales_price": 149,
"vip1_price": 0,
"vip2_price": 0,
"vip3_price": 0,
"vip_discount_type": 3,
"vip_price": 0
}
},
{
"newProductPriceBo": {
"product_skn": 50000082,
"retail_price": 298,
"return_coin": 1111,
"sales_price": 22,
"vip_discount_type": 4,
"vip_price": 260
},
"oldProductPriceBo": {
"product_skn": 50000082,
"retail_price": 298,
"return_coin": 0,
"sales_price": 149,
"vip1_price": 0,
"vip2_price": 0,
"vip3_price": 0,
"vip_discount_type": 3,
"vip_price": 0
}
},
{
"newProductPriceBo": {
"product_skn": 50000082,
"retail_price": 298,
"return_coin": 1111,
"sales_price": 22,
"vip_discount_type": 4,
"vip_price": 260
},
"oldProductPriceBo": {
"product_skn": 50000082,
"retail_price": 298,
"return_coin": 0,
"sales_price": 149,
"vip1_price": 0,
"vip2_price": 0,
"vip3_price": 0,
"vip_discount_type": 3,
"vip_price": 0
}
},
{
"newProductPriceBo": {
"product_skn": 50000082,
"retail_price": 298,
"return_coin": 1111,
"sales_price": 22,
"vip_discount_type": 4,
"vip_price": 260
},
"oldProductPriceBo": {
"product_skn": 50000082,
"retail_price": 298,
"return_coin": 0,
"sales_price": 149,
"vip1_price": 0,
"vip2_price": 0,
"vip3_price": 0,
"vip_discount_type": 3,
"vip_price": 0
}
}
]
},
"message": "导入成功"
}
```
\ No newline at end of file
... ...