feat: add community post categories and channels
This commit is contained in:
@@ -25,6 +25,21 @@ export function communityPostSetHot(params: any) {
|
||||
return request.post({ url: '/community.communityPost/setHot', params })
|
||||
}
|
||||
|
||||
// 帖子设推荐
|
||||
export function communityPostSetRecommend(params: any) {
|
||||
return request.post({ url: '/community.communityPost/setRecommend', params })
|
||||
}
|
||||
|
||||
// 帖子设话题
|
||||
export function communityPostSetTopic(params: any) {
|
||||
return request.post({ url: '/community.communityPost/setTopic', params })
|
||||
}
|
||||
|
||||
// 帖子设置分类
|
||||
export function communityPostSetCategory(params: any) {
|
||||
return request.post({ url: '/community.communityPost/setCategory', params })
|
||||
}
|
||||
|
||||
// 删除帖子
|
||||
export function communityPostDelete(params: any) {
|
||||
return request.post({ url: '/community.communityPost/delete', params })
|
||||
@@ -60,6 +75,36 @@ export function communityTagDetail(params: any) {
|
||||
return request.get({ url: '/community.communityTag/detail', params })
|
||||
}
|
||||
|
||||
// 帖子分类列表
|
||||
export function communityCategoryLists(params?: any) {
|
||||
return request.get({ url: '/community.communityCategory/lists', params })
|
||||
}
|
||||
|
||||
// 全部帖子分类
|
||||
export function communityCategoryAll(params?: any) {
|
||||
return request.get({ url: '/community.communityCategory/all', params })
|
||||
}
|
||||
|
||||
// 帖子分类详情
|
||||
export function communityCategoryDetail(params: any) {
|
||||
return request.get({ url: '/community.communityCategory/detail', params })
|
||||
}
|
||||
|
||||
// 新增帖子分类
|
||||
export function communityCategoryAdd(params: any) {
|
||||
return request.post({ url: '/community.communityCategory/add', params })
|
||||
}
|
||||
|
||||
// 编辑帖子分类
|
||||
export function communityCategoryEdit(params: any) {
|
||||
return request.post({ url: '/community.communityCategory/edit', params })
|
||||
}
|
||||
|
||||
// 删除帖子分类
|
||||
export function communityCategoryDelete(params: any) {
|
||||
return request.post({ url: '/community.communityCategory/delete', params })
|
||||
}
|
||||
|
||||
// 评论列表
|
||||
export function communityCommentLists(params?: any) {
|
||||
return request.get({ url: '/community.communityComment/lists', params })
|
||||
|
||||
Reference in New Issue
Block a user