評價(jià)接口數(shù)據(jù)描述
9.1獲取發(fā)起評論商品信息接口
- 請求路徑:com/smallprogapi/Comment/GetComment
- 請求參數(shù):
?
參數(shù)名稱 | 必填 | 參數(shù)值說明 | 格式要求 |
openId | 是 | OpenID | String |
orderId | 是 | 訂單號 | Long |
?
- 返回值說明:Json格式
返回結(jié)果:
失?。?/p> {"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
- 請求參數(shù):
?
參數(shù)名稱 | 必填 | 參數(shù)值說明 | 格式要求 |
openId | 是 | OpenID | String |
Jsonstr | 是 | 數(shù)據(jù)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格式
返回結(jié)果:
{"success":true,"msg":"","code":0,"data":0} |
9.3獲取?“追加評論”前的數(shù)據(jù)
- 請求路徑:com/smallprogapi/Comment/GetAppendComment
- 請求參數(shù):
?
參數(shù)名稱 | 必填 | 參數(shù)值說明 | 格式要求 |
openId | 是 | OpenID | String |
orderId | 是 | 訂單編號 | Long |
?
- 返回值說明:Json格式
返回結(jié)果:
{"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
- 請求參數(shù):
?
參數(shù)名稱 | 必填 | 參數(shù)值說明 | 格式要求 |
openId | 是 | OpenID | String |
productCommentsJSON | 是 | 數(shù)據(jù)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格式
返回結(jié)果:
{"success":true,"msg":"","code":0,"data":0} |
?
0 Comments.