用户工具

站点工具


评论

到此差别页面的链接

两侧同时换到之前的修订记录 前一修订版
后一修订版
前一修订版
评论 [2016/05/24 19:43]
lyy
评论 [2017/06/01 13:59] (当前版本)
行 18: 行 18:
 === items数据说明 === === items数据说明 ===
 ^ 名称 ​        ^ 类型 ​     ^ 说明 ​   ^ ^ 名称 ​        ^ 类型 ​     ^ 说明 ​   ^
-| id| int| 退款ID|+| id| int| 评论ID|
 | order_id| int| 订单ID ​   | | order_id| int| 订单ID ​   |
 | buyer_id| int| 买家ID ​   | | buyer_id| int| 买家ID ​   |
行 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、添加评论 =====+=== 接口名称 ​==
 + ​buyer-comments/​product-comment 
 +=== 请求方式 === 
 +  get 
 +=== 请求参数 === 
 +^ 参数名称 ​ ^ 参数类型 ​ ^ 是否必填 ​ ^ 说明 ​   ^ 
 +| productId| int   | 是     | 产品id ​ | 
 +| comType| int   | 否     | 评论类型 (默认为0,获取所有的评论 1,好 2中 3差 4有图片) | 
 +|pageSize|int|否|每页数量 默认为50| 
 +=== 返回值 === 
 +^ 名称 ​        ^ 类型 ​     ^ 说明 ​   ^ 
 +| items| data| 数据 ​ | 
 +| _links| data| 分页信息 ​   | 
 +| _meta| data| 查询数据信息 ​   | 
 +=== items数据说明 === 
 +^ 名称 ​        ^ 类型 ​     ^ 说明 ​   ^ 
 +| buyer_id| int| 买家ID ​   | 
 +| product_id| number| 产品id| 
 +| product_sku_id| number| 产品sku id  | 
 +| cnt| string| 评论内容 ​   | 
 +| addtime| string| 评论时间| 
 +| reply| string| 回复内容 ​ | 
 +| comType| int| 评论类型 (1,好 2中 3差 )   | 
 +| 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 
 +                        ) 
 +''​| 
 +===== 3、添加评论 =====
 === 接口名称 === === 接口名称 ===
   buyer-comments/​create   buyer-comments/​create
行 42: 行 102:
 | orderId| int| 是     ​|订单ID ​   | | orderId| int| 是     ​|订单ID ​   |
 | buyerId| int| 是     ​|买家ID ​   | | buyerId| int| 是     ​|买家ID ​   |
-sellerIdint|是     ​|卖家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| 是     ​|评论内容 ​   |+
 === 返回值 === === 返回值 ===
 ^ 名称 ​        ^ 类型 ​     ^ 说明 ​   ^ ^ 名称 ​        ^ 类型 ​     ^ 说明 ​   ^
行 55: 行 123:
 | message| string ​ | 返回信息 ​   | | message| string ​ | 返回信息 ​   |
  
-===== 3、回复评论 =====+===== 4、回复评论 =====
 === 接口名称 === === 接口名称 ===
   buyer-comments/​reply   buyer-comments/​reply
行 69: 行 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| 差评 ​  |
评论.1464090221.txt.gz · 最后更改: 2017/06/01 13:58 (外部编辑)