增加网站管理功能

This commit is contained in:
hero920103 committed 2026-09-17 23:00:06 +08:00
1 parent 1224735aa8
commit 67e819c629
98 files changed
+8711 -2254

No files matched your search

+57
View File
@@ -0,0 +1,57 @@
import request from "@/utils/request";
// ==================== 官网管理 - 评论管理(平台端) ====================
// 数据表:yz_platform_website_comment
// status:0 待审核,1 已通过,2 已拒绝
// 评论列表(分页):keyword / status / article_id / page / pageSize
export function listComments(params) {
return request({
url: "/platform/website/comment/list",
method: "get",
params,
});
}
// 评论详情
export function getComment(id) {
return request({
url: `/platform/website/comment/${id}`,
method: "get",
});
}
// 审核评论(status:1 通过 / 2 拒绝)
export function auditComment(id, status) {
return request({
url: `/platform/website/comment/${id}/audit`,
method: "post",
data: { status },
});
}
// 回复评论
export function replyComment(id, reply) {
return request({
url: `/platform/website/comment/${id}/reply`,
method: "post",
data: { reply },
});
}
// 删除评论
export function deleteComment(id) {
return request({
url: `/platform/website/comment/${id}`,
method: "delete",
});
}
// 批量删除评论
export function batchDeleteComments(ids) {
return request({
url: "/platform/website/comment/batchdelete",
method: "post",
data: { ids },
});
}