跳至内容
拜哥网API文档
用户工具
注册
登录
站点工具
搜索
工具
显示页面
修订记录
反向链接
最近更改
媒体管理器
网站地图
登录
注册
>
最近更改
媒体管理器
网站地图
您的足迹:
•
快递接口
评论
====== 评论接口 ====== ------ ===== 1、评论列表 ===== === 接口名称 === buyer-comments/list === 请求方式 === get === 请求参数 === ^ 参数名称 ^ 参数类型 ^ 是否必填 ^ 说明 ^ | buyerId| int | 是 | 买家id | |pageSize|int|否|每页数量 默认为50| === 返回值 === ^ 名称 ^ 类型 ^ 说明 ^ | items| data| 数据 | | _links| data| 分页信息 | | _meta| data| 查询数据信息 | === items数据说明 === ^ 名称 ^ 类型 ^ 说明 ^ | id| int| 评论ID| | order_id| int| 订单ID | | buyer_id| int| 买家ID | | seller_id| int|卖家id | | order_detail_id| int| 订单详情id | | addtime| string| 添加时间| | product_id| number| 产品id| | product_sku_id| number| 产品sku id | | description| int| 描述评分 | | service| int| 服务评分 | | express| int| 快递评分 | | cnt| 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获取评论 ===== === 接口名称 === 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 === 请求方式 === post === 请求参数 === ^ 参数名称 ^ 参数类型 ^ 是否必填 ^ 说明 ^ | orderId| int| 是 |订单ID | | buyerId| int| 是 |买家ID | |commentJson|json|是|评论json<code> {"sellerId":"61bd959f048d008fe07f1c39a337cc72",//卖家id 必填 "orderDetailId":"74",//订单详情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| 是 |描述评分 | | service| int| 是 |服务评分 | | express| int| 是 |快递评分 | === 返回值 === ^ 名称 ^ 类型 ^ 说明 ^ | result | bool | 返回结果 success 成功 error 失败 | | message| string | 返回信息 | ===== 4、回复评论 ===== === 接口名称 === buyer-comments/reply === 请求方式 === post === 请求参数 === ^ 参数名称 ^ 参数类型 ^ 是否必填 ^ 说明 ^ | commentId| int| 是 |评论ID | | sellerId| int|是 |卖家id | | reply| string| 是 |回复内容 | === 返回值 === ^ 名称 ^ 类型 ^ 说明 ^ | result | bool | 返回结果 success 成功 error 失败 | | message| string | 返回信息 | ===== 5、评论列表数量 ===== === 接口名称 === buyer-comments/product-comment-num === 请求方式 === get === 请求参数 === ^ 参数名称 ^ 参数类型 ^ 是否必填 ^ 说明 ^ | productId| int | 是 | 产品id | === 返回值 === | allCount| int| 所有评论数量| | picCount| int| 图片 | | goodCount| int| 好评 | | mediumCount| int|中评 | | badCount| int| 差评 |
评论.txt
· 最后更改: 2017/06/01 13:59 (外部编辑)
页面工具
显示页面
修订记录
反向链接
回到顶部