2023-12-13 03:35:02 +00:00
|
|
|
import request from '@/sheep/request';
|
|
|
|
|
|
|
|
const CommentApi = {
|
|
|
|
// 获得商品评价分页
|
|
|
|
getCommentPage: (spuId, pageNo, pageSize, type) => {
|
|
|
|
return request({
|
2024-01-20 05:13:28 +00:00
|
|
|
url: '/product/comment/page',
|
2023-12-13 03:35:02 +00:00
|
|
|
method: 'GET',
|
|
|
|
params: {
|
|
|
|
spuId,
|
|
|
|
pageNo,
|
|
|
|
pageSize,
|
2024-01-20 09:28:04 +00:00
|
|
|
type,
|
|
|
|
},
|
|
|
|
custom: {
|
|
|
|
showLoading: false,
|
|
|
|
showError: false,
|
2023-12-13 03:35:02 +00:00
|
|
|
},
|
|
|
|
});
|
|
|
|
},
|
|
|
|
};
|
|
|
|
export default CommentApi;
|