Files
sbnews/admin/src/api/community.ts
T

82 lines
2.3 KiB
TypeScript

import request from '@/utils/request'
// 帖子列表
export function communityPostLists(params?: any) {
return request.get({ url: '/community.communityPost/lists', params })
}
// 帖子详情
export function communityPostDetail(params: any) {
return request.get({ url: '/community.communityPost/detail', params })
}
// 帖子审核状态
export function communityPostStatus(params: any) {
return request.post({ url: '/community.communityPost/updateStatus', params })
}
// 帖子置顶
export function communityPostSetTop(params: any) {
return request.post({ url: '/community.communityPost/setTop', params })
}
// 帖子设热门
export function communityPostSetHot(params: any) {
return request.post({ url: '/community.communityPost/setHot', params })
}
// 删除帖子
export function communityPostDelete(params: any) {
return request.post({ url: '/community.communityPost/delete', params })
}
// 标签列表
export function communityTagLists(params?: any) {
return request.get({ url: '/community.communityTag/lists', params })
}
// 全部标签
export function communityTagAll(params?: any) {
return request.get({ url: '/community.communityTag/all', params })
}
// 添加标签
export function communityTagAdd(params: any) {
return request.post({ url: '/community.communityTag/add', params })
}
// 编辑标签
export function communityTagEdit(params: any) {
return request.post({ url: '/community.communityTag/edit', params })
}
// 删除标签
export function communityTagDelete(params: any) {
return request.post({ url: '/community.communityTag/delete', params })
}
// 标签详情
export function communityTagDetail(params: any) {
return request.get({ url: '/community.communityTag/detail', params })
}
// 评论列表
export function communityCommentLists(params?: any) {
return request.get({ url: '/community.communityComment/lists', params })
}
// 评论账号列表
export function communityCommentAccountLists(params?: any) {
return request.get({ url: '/community.commentAccount/lists', params })
}
// 评论审核状态
export function communityCommentStatus(params: any) {
return request.post({ url: '/community.communityComment/updateStatus', params })
}
// 删除评论
export function communityCommentDelete(params: any) {
return request.post({ url: '/community.communityComment/delete', params })
}