Authored by liqingzhong

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

@@ -477,4 +477,146 @@ @@ -477,4 +477,146 @@
477 "message": "Product Price update success." 477 "message": "Product Price update success."
478 } 478 }
479 479
  480 +```
  481 +
  482 +
  483 +
  484 +## 下载文件
  485 +
  486 +> 接口名: '/batch/download?path= ***'
  487 +
  488 +### 入参
  489 +
  490 +-------------------------
  491 +|属性名称|类型|例子|说明|
  492 +|--------|----|----|----|
  493 +|path|字符串|文件链接|必填|
  494 +---------------------
  495 +
  496 +### 返回
  497 +
  498 +```
  499 +文件流
  500 +```
  501 +
  502 +
  503 +
  504 +## 批量上传变价文本
  505 +
  506 +> 接口名: '/batch/import'
  507 +
  508 +### 入参
  509 +
  510 +-------------------------
  511 +|属性名称|类型|例子|说明|
  512 +|--------|----|----|----|
  513 +|file|文件|文件流|必填|
  514 +|type|字符串|price|必填|
  515 +---------------------
  516 +
  517 +### 返回 (备注:failFileReason 是失败的原因, succesList成功的列表 newProductPriceBo代表表格中的新数据 oldProductPriceBo代表数据库中的旧记录 )
  518 +
  519 +```
  520 +{
  521 + "code": 200,
  522 + "data": {
  523 + "failFileReason": [
  524 + "第2行:对应的skn不存在数据库中;",
  525 + "第3行:非代销商品;",
  526 + "第5行:固定折扣,填写VIP价;",
  527 + "第7行:固定折扣,填写VIP价;",
  528 + "第9行:固定折扣,填写VIP价;",
  529 + "第10行:固定折扣,填写VIP价;",
  530 + "第11行:固定折扣,填写VIP价;",
  531 + "第12行:固定折扣,填写VIP价;"
  532 + ],
  533 + "succesList": [
  534 + {
  535 + "newProductPriceBo": {
  536 + "product_skn": 50000082,
  537 + "retail_price": 298,
  538 + "return_coin": 1111,
  539 + "sales_price": 22,
  540 + "vip_discount_type": 4,
  541 + "vip_price": 260
  542 + },
  543 + "oldProductPriceBo": {
  544 + "product_skn": 50000082,
  545 + "retail_price": 298,
  546 + "return_coin": 0,
  547 + "sales_price": 149,
  548 + "vip1_price": 0,
  549 + "vip2_price": 0,
  550 + "vip3_price": 0,
  551 + "vip_discount_type": 3,
  552 + "vip_price": 0
  553 + }
  554 + },
  555 + {
  556 + "newProductPriceBo": {
  557 + "product_skn": 50000082,
  558 + "retail_price": 298,
  559 + "return_coin": 1111,
  560 + "sales_price": 22,
  561 + "vip_discount_type": 4,
  562 + "vip_price": 260
  563 + },
  564 + "oldProductPriceBo": {
  565 + "product_skn": 50000082,
  566 + "retail_price": 298,
  567 + "return_coin": 0,
  568 + "sales_price": 149,
  569 + "vip1_price": 0,
  570 + "vip2_price": 0,
  571 + "vip3_price": 0,
  572 + "vip_discount_type": 3,
  573 + "vip_price": 0
  574 + }
  575 + },
  576 + {
  577 + "newProductPriceBo": {
  578 + "product_skn": 50000082,
  579 + "retail_price": 298,
  580 + "return_coin": 1111,
  581 + "sales_price": 22,
  582 + "vip_discount_type": 4,
  583 + "vip_price": 260
  584 + },
  585 + "oldProductPriceBo": {
  586 + "product_skn": 50000082,
  587 + "retail_price": 298,
  588 + "return_coin": 0,
  589 + "sales_price": 149,
  590 + "vip1_price": 0,
  591 + "vip2_price": 0,
  592 + "vip3_price": 0,
  593 + "vip_discount_type": 3,
  594 + "vip_price": 0
  595 + }
  596 + },
  597 + {
  598 + "newProductPriceBo": {
  599 + "product_skn": 50000082,
  600 + "retail_price": 298,
  601 + "return_coin": 1111,
  602 + "sales_price": 22,
  603 + "vip_discount_type": 4,
  604 + "vip_price": 260
  605 + },
  606 + "oldProductPriceBo": {
  607 + "product_skn": 50000082,
  608 + "retail_price": 298,
  609 + "return_coin": 0,
  610 + "sales_price": 149,
  611 + "vip1_price": 0,
  612 + "vip2_price": 0,
  613 + "vip3_price": 0,
  614 + "vip_discount_type": 3,
  615 + "vip_price": 0
  616 + }
  617 + }
  618 + ]
  619 + },
  620 + "message": "导入成功"
  621 +}
480 ``` 622 ```