2023-06-09 16:17:07 +00:00
|
|
|
import request from "@/utils/request.js";
|
|
|
|
|
|
|
|
// 获得商品的评价统计
|
|
|
|
export function getCommentStatistics(spuId) {
|
|
|
|
return request.get('app-api/product/comment/statistics', {
|
|
|
|
spuId
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
// 获得最近的 n 条商品评价
|
2023-06-11 14:18:47 +00:00
|
|
|
export function getCommentList(spuId, count) {
|
2023-06-09 16:17:07 +00:00
|
|
|
return request.get('app-api/product/comment/list', {
|
2023-06-11 14:18:47 +00:00
|
|
|
spuId,
|
|
|
|
count
|
2023-06-09 16:17:07 +00:00
|
|
|
});
|
|
|
|
}
|