Files
Friendship-and-chat-uniapp/api/product/comment.js
T
YunaiV 33311ae19c 【商品详情】
1. 接入评论逻辑
2023-06-10 00:17:07 +08:00

16 lines
350 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) {
return request.get('app-api/product/comment/list', {
spuId
});
}