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
|
2023-06-11 14:59:10 +00:00
|
|
|
}, {
|
|
|
|
noAuth: true // TODO 芋艿:后续要做调整
|
2023-06-09 16:17:07 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
// 获得最近的 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-11 14:59:10 +00:00
|
|
|
}, {
|
|
|
|
noAuth: true // TODO 芋艿:后续要做调整
|
2023-06-09 16:17:07 +00:00
|
|
|
});
|
|
|
|
}
|
2023-06-27 16:25:26 +00:00
|
|
|
|
|
|
|
// 获得商品评价分页
|
|
|
|
export function getCommentPage(data) {
|
|
|
|
return request.get('app-api/product/comment/page', data, {
|
|
|
|
noAuth: true // TODO 芋艿:后续要做调整
|
|
|
|
});
|
|
|
|
}
|