62 lines
1.1 KiB
JavaScript
62 lines
1.1 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
// 查询话题评论列表
|
|
export function listComment(query) {
|
|
return request({
|
|
url: '/postComment/comment/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 查询话题评论详细
|
|
export function getComment(id) {
|
|
return request({
|
|
url: '/postComment/comment/' + id,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 查询话题评论数量
|
|
export function getCommentNum(id) {
|
|
return request({
|
|
url: '/postComment/comment/num/' + id,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 新增话题评论
|
|
export function addComment(data) {
|
|
return request({
|
|
url: '/postComment/comment',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 新增话题评论app
|
|
export function addCommentApp(data) {
|
|
return request({
|
|
url: '/postComment/comment/app',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 修改话题评论
|
|
export function updateComment(data) {
|
|
return request({
|
|
url: '/postComment/comment',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除话题评论
|
|
export function delComment(id) {
|
|
return request({
|
|
url: '/postComment/comment/' + id,
|
|
method: 'delete'
|
|
})
|
|
}
|