增加网站管理功能
This commit is contained in:
1 parent
1224735aa8
commit
67e819c629
98 files changed
+8711
-2254
No files matched your search
@@ -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 },
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user