| 两侧同时换到之前的修订记录 前一修订版 后一修订版 | 前一修订版 | ||
|
评论 [2016/06/13 15:15] lyy |
评论 [2017/06/01 13:59] (当前版本) |
||
|---|---|---|---|
| 行 31: | 行 31: | ||
| | cnt| string| 评论内容 | | | cnt| string| 评论内容 | | ||
| | reply| string| 回复内容 | | | reply| string| 回复内容 | | ||
| + | | memberName| string| 会员名称 | | ||
| + | | memberAvatar| string| 会员头像 | | ||
| + | | productInfo| array| 产品信息 ''Array | ||
| + | ( | ||
| + | [properties_name] => 颜色:红色,大小:X,套餐:电信 | ||
| + | [name] => 432432432 | ||
| + | [price] => 22.00 | ||
| + | [shop_name] => 这是衣服店2 | ||
| + | [business_id] => 1 | ||
| + | [pic1] =>产品图片 | ||
| + | ) | ||
| + | '' | | ||
| + | |imgs|array|评论图片''Array | ||
| + | ( | ||
| + | [0] => http://pic.8dage.net/data/uploadfile/images/1/20160527/78b0ad56dc.jpg | ||
| + | [1] => http://pic.8dage.net/data/uploadfile/images/1/20160606/3ada052983.jpg | ||
| + | ) | ||
| + | ''| | ||
| ===== 2、根据产品id获取评论 ===== | ===== 2、根据产品id获取评论 ===== | ||
| 行 59: | 行 77: | ||
| | memberName| string| 会员名称 | | | memberName| string| 会员名称 | | ||
| | memberAvatar| string| 会员头像 | | | memberAvatar| string| 会员头像 | | ||
| - | | productInfo| array| 产品信息 | ''Array | + | | productInfo| array| 产品信息 ''Array |
| ( | ( | ||
| [properties_name] => 颜色:红色,大小:X,套餐:电信 | [properties_name] => 颜色:红色,大小:X,套餐:电信 | ||
| 行 66: | 行 84: | ||
| [shop_name] => 这是衣服店2 | [shop_name] => 这是衣服店2 | ||
| [business_id] => 1 | [business_id] => 1 | ||
| + | [pic1] =>产品图片 | ||
| ) | ) | ||
| '' | | '' | | ||
| - | |imgs|array|评论图片|''Array | + | |imgs|array|评论图片''Array |
| ( | ( | ||
| [0] => http://pic.8dage.net/data/uploadfile/images/1/20160527/78b0ad56dc.jpg | [0] => http://pic.8dage.net/data/uploadfile/images/1/20160527/78b0ad56dc.jpg | ||
| 行 83: | 行 102: | ||
| | orderId| int| 是 |订单ID | | | orderId| int| 是 |订单ID | | ||
| | buyerId| int| 是 |买家ID | | | buyerId| int| 是 |买家ID | | ||
| - | | sellerId| int|是 |卖家id | | + | |commentJson|json|是|评论json<code> |
| - | | orderDetailId| int| 是 |订单详情id | | + | {"sellerId":"61bd959f048d008fe07f1c39a337cc72",//卖家id 必填 |
| - | | productId| number| 是 |产品id| | + | "orderDetailId":"74",//订单详情id 必填 |
| - | | productSkuId| number| 是 |产品sku id | | + | "productId":"33",//产品id 必填 |
| + | "productSkuId":"82",//产品sku id 必填 | ||
| + | "cnt":"sssss",//内容 | ||
| + | "comType":"1",//类型 必填 | ||
| + | "pic":"http:\/\/pic.8dage.net\/data\/uploadfile\/images\/0\/20160705\/f3341a2aba.jpeg"//图片 | ||
| + | } | ||
| + | </code>| | ||
| + | |||
| | description| int| 是 |描述评分 | | | description| int| 是 |描述评分 | | ||
| | service| int| 是 |服务评分 | | | service| int| 是 |服务评分 | | ||
| | express| int| 是 |快递评分 | | | express| int| 是 |快递评分 | | ||
| - | | cnt| string| 是 |评论内容 | | + | |
| === 返回值 === | === 返回值 === | ||
| ^ 名称 ^ 类型 ^ 说明 ^ | ^ 名称 ^ 类型 ^ 说明 ^ | ||
| 行 110: | 行 137: | ||
| | result | bool | 返回结果 success 成功 error 失败 | | | result | bool | 返回结果 success 成功 error 失败 | | ||
| | message| string | 返回信息 | | | message| string | 返回信息 | | ||
| + | |||
| + | ===== 5、评论列表数量 ===== | ||
| + | |||
| + | === 接口名称 === | ||
| + | buyer-comments/product-comment-num | ||
| + | === 请求方式 === | ||
| + | get | ||
| + | === 请求参数 === | ||
| + | ^ 参数名称 ^ 参数类型 ^ 是否必填 ^ 说明 ^ | ||
| + | | productId| int | 是 | 产品id | | ||
| + | === 返回值 === | ||
| + | | allCount| int| 所有评论数量| | ||
| + | | picCount| int| 图片 | | ||
| + | | goodCount| int| 好评 | | ||
| + | | mediumCount| int|中评 | | ||
| + | | badCount| int| 差评 | | ||