feature/comment-0624-ch
ch 2 years ago
parent c8302cf9ef
commit ddc982a35d

@ -2,7 +2,7 @@
* @Author: ch * @Author: ch
* @Date: 2022-06-20 11:38:48 * @Date: 2022-06-20 11:38:48
* @LastEditors: ch * @LastEditors: ch
* @LastEditTime: 2022-06-29 16:03:36 * @LastEditTime: 2022-06-29 17:45:28
* @Description: file content * @Description: file content
*/ */
@ -19,8 +19,8 @@ const BASE_URL = `${ENV.base_url}/mall/comment`;
*/ */
export const ApiGetCommentList = (params) => export const ApiGetCommentList = (params) =>
ToAsyncAwait(axiosTk.get(`${BASE_URL}/app/comment`, { ToAsyncAwait(axiosTk.get(`${BASE_URL}/app/comment`, {
params: { params,
...params, headers: {
notVerifyToken : true notVerifyToken : true
} }
})); }));
@ -31,7 +31,7 @@ export const ApiGetCommentList = (params) =>
*/ */
export const ApiGetCommentCount = ({productId}) => export const ApiGetCommentCount = ({productId}) =>
ToAsyncAwait(axiosTk.get(`${BASE_URL}/app/comment/getAllCommentCountByProductId/${productId}`,{ ToAsyncAwait(axiosTk.get(`${BASE_URL}/app/comment/getAllCommentCountByProductId/${productId}`,{
params: { headers: {
notVerifyToken : true notVerifyToken : true
} }
})); }));
@ -59,7 +59,7 @@ export const ApiGetProductSatisfaction = ({productId}) =>
*/ */
export const ApiGetCommentDetail = ({commentId}) => export const ApiGetCommentDetail = ({commentId}) =>
ToAsyncAwait(axiosTk.get(`${BASE_URL}/app/comment/getCommentDetail/${commentId}`, { ToAsyncAwait(axiosTk.get(`${BASE_URL}/app/comment/getCommentDetail/${commentId}`, {
params: { headers: {
notVerifyToken : true notVerifyToken : true
} }
})); }));

Loading…
Cancel
Save