From 4cf8f4eb393dcaf3d2575312b1accb45c19c5476 Mon Sep 17 00:00:00 2001 From: mali <157457650@qq.com> Date: Thu, 18 Feb 2016 16:41:49 +0800 Subject: [PATCH] 接口文档 --- inferface-document/productPrice.md | 105 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 103 insertions(+), 2 deletions(-) diff --git a/inferface-document/productPrice.md b/inferface-document/productPrice.md index a03c867..152bdd7 100644 --- a/inferface-document/productPrice.md +++ b/inferface-document/productPrice.md @@ -514,8 +514,109 @@ |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 -- libgit2 0.24.0