Files
Friendship-and-chat-uniapp/api/product/comment.js
T
2023-06-11 22:18:47 +08:00

17 lines
368 B
JavaScript

import request from "@/utils/request.js";
// 获得商品的评价统计
export function getCommentStatistics(spuId) {
return request.get('app-api/product/comment/statistics', {
spuId
});
}
// 获得最近的 n 条商品评价
export function getCommentList(spuId, count) {
return request.get('app-api/product/comment/list', {
spuId,
count
});
}