feat: repley

This commit is contained in:
zzc
2026-06-15 08:56:18 +08:00
parent cd1595373b
commit 082cd011d2
4 changed files with 369 additions and 89 deletions

View File

@@ -30,13 +30,25 @@ export const topicItemCommentLike = async (data) => {
};
// 获取评论列表
export const topicItemCommentList = async (topicId, itemId, page = 1, orderBy = 1) => {
export const topicItemCommentList = async (topicId, itemId, page = 1, orderBy = 'hot') => {
return request({
url: `/api/rating/topic/comment/item/list?topicId=${topicId}&itemId=${itemId}&page=${page}&orderBy=${orderBy}`,
method: "GET",
});
};
/*
* 获取评论回复列表
* @param {rootCommentId: string, page: number} data
*/
export const topicItemCommentReplyList = async (data) => {
return request({
url: "/api/rating/topic/comment/replies",
method: "GET",
data,
});
};
// 获取评分项详情
export const fetchTopicRatingItems = async (itemId) => {
return request({