|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
* @Author: ch
|
|
|
|
|
* @Date: 2022-06-20 11:38:48
|
|
|
|
|
* @LastEditors: ch
|
|
|
|
|
* @LastEditTime: 2022-06-29 16:04:59
|
|
|
|
|
* @LastEditTime: 2022-06-29 17:41:44
|
|
|
|
|
* @Description: file content
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
@ -15,17 +15,16 @@ const BASE_URL = '/mall/comment';
|
|
|
|
|
* @param {*} param0
|
|
|
|
|
*/
|
|
|
|
|
export const ApiGetCommentList = (params) =>
|
|
|
|
|
ToAsyncAwait(MsbRequestTk.get(`${BASE_URL}/app/comment`, {
|
|
|
|
|
...params,
|
|
|
|
|
notVerifyToken : true
|
|
|
|
|
ToAsyncAwait(MsbRequestTk.get(`${BASE_URL}/app/comment`,params, {
|
|
|
|
|
notVerifyToken: true
|
|
|
|
|
}));
|
|
|
|
|
/**
|
|
|
|
|
* 根据商品获取评论总数
|
|
|
|
|
* @param {*} param0
|
|
|
|
|
*/
|
|
|
|
|
export const ApiGetCommentCount = ({productId}) =>
|
|
|
|
|
ToAsyncAwait(MsbRequestTk.get(`${BASE_URL}/app/comment/getAllCommentCountByProductId/${productId}`, {
|
|
|
|
|
notVerifyToken : true
|
|
|
|
|
ToAsyncAwait(MsbRequestTk.get(`${BASE_URL}/app/comment/getAllCommentCountByProductId/${productId}`,{}, {
|
|
|
|
|
notVerifyToken: true
|
|
|
|
|
}));
|
|
|
|
|
/**
|
|
|
|
|
* 根据商品获取标签评论总数
|
|
|
|
@ -44,8 +43,8 @@ export const ApiGetOrderCommentDetail = ({orderId}) =>
|
|
|
|
|
* @param {*} param0
|
|
|
|
|
*/
|
|
|
|
|
export const ApiGetCommentDetail = ({commentId}) =>
|
|
|
|
|
ToAsyncAwait(MsbRequestTk.get(`${BASE_URL}/app/comment/getCommentDetail/${commentId}`, {
|
|
|
|
|
notVerifyToken : true
|
|
|
|
|
ToAsyncAwait(MsbRequestTk.get(`${BASE_URL}/app/comment/getCommentDetail/${commentId}`,{}, {
|
|
|
|
|
notVerifyToken: true
|
|
|
|
|
}));
|
|
|
|
|
/**
|
|
|
|
|
* 新增评论
|
|
|
|
|