评价接口数据描述
|9.1获取发起评论商品信息接口
- 请求路径:com/smallprogapi/Comment/GetComment
- 请求参数:
参数名称 | 必填 | 参数值说明 | 格式要求 |
openId | 是 | OpenID | String |
orderId | 是 | 订单号 | Long |
- 返回值说明:Json格式
返回结果:
失败: {"success":false,"msg":"该订单不存在或者已评论过","code":0,"data":null} 成功: {"success":false,"msg":"该订单不存在或者已评论过","code":0,"data":{"Product":[{"ProductId":233,"ProductName":"卡贝 厨房置物架壁挂 五金刀架用品收纳架 304不锈钢厨房挂件挂架","Image":"http://localhost/Storage/Shop/1/Products/233/1_100.png"}],"orderItemIds":[23503,23504,23505]}} |
9.2提交评论接口
- 请求路径:com/smallprogapi/Comment/PostAddComment
- 请求参数:
参数名称 | 必填 | 参数值说明 | 格式要求 |
openId | 是 | OpenID | String |
Jsonstr | 是 | 数据json | Json格式 |
String jsonstr; 格式如下:
Jsonstr= “{ "orderId": "2016022392950672", 订单ID "serviceMark": "1", 配送评分 "deliveryMark": "2", 送货速度评分 "packMark": "1", 店铺评分 "productComments": [ 商品评论 { "mark": "3", 评分 "content": "11111111", 描述 "orderItemId": "23503", 子订单ID "Images": [ 买家上传的图片 "/temp/201602231625532011430.jpg", "/temp/201602231625550162470.jpg", "/temp/201602231625567793470.jpg" ], "WXmediaId": [] (微信端使用)空,但必须写上 }, { "mark": "4", "content": "22222222222", "orderItemId": "23504", "Images": [ "/temp/201602231626042447740.jpg" ], "WXmediaId": [] }, { "mark": "5", "content": "333333333", "orderItemId": "23505", "Images": [ "/temp/201602231626083560100.jpg" ], "WXmediaId": [] } ] }” |
- 返回值说明:Json格式
返回结果:
{"success":true,"msg":"","code":0,"data":0} |
9.3获取 “追加评论”前的数据
- 请求路径:com/smallprogapi/Comment/GetAppendComment
- 请求参数:
参数名称 | 必填 | 参数值说明 | 格式要求 |
openId | 是 | OpenID | String |
orderId | 是 | 订单编号 | Long |
- 返回值说明:Json格式
返回结果:
{"success":true,"msg":"","code":0,"data":[{"Id":3865,"CommentId":1075,"ProductId":1248,"ProductName":"分销商品","ThumbnailsUrl":"http://localhost:4573//Storage/Shop/253/Products/1248/1_220.png","BuyTime":"2017-11-10T19:00:39","EvaluationStatus":true,"EvaluationContent":"好评!","AppendContent":null,"AppendTime":null,"EvaluationTime":"2017-11-12T19:27:42","ReplyTime":null,"ReplyContent":null,"ReplyAppendTime":null,"ReplyAppendContent":null,"EvaluationRank":4,"OrderId":2017111051514205,"CommentImages":[],"Color":null,"Size":null,"Version":null}]} |
9.4提交追加评论接口
- 请求路径:com/smallprogapi/Comment/PostAppendComment
- 请求参数:
参数名称 | 必填 | 参数值说明 | 格式要求 |
openId | 是 | OpenID | String |
productCommentsJSON | 是 | 数据json | Json格式 |
String productCommentsJSON; 格式如下:
productCommentsJSON= “[ { "Id": "70", "AppendContent": "追加111111111111", "Images": [ "/temp/201602231651073607480.jpg", "/temp/201602231651215735610.jpg" ], "WXmediaId": [] }, { "Id": "71", "AppendContent": "追加2222222", "Images": [ "/temp/201602231651305510740.jpg" ], "WXmediaId": [] }, { "Id": "72", "AppendContent": "追加333333333", "Images": [ "/temp/201602231651379724990.jpg" ], "WXmediaId": [] } ]”
|
- 返回值说明:Json格式
返回结果:
{"success":true,"msg":"","code":0,"data":0} |
0 Comments.