talk_appAmin/api/postComment/comment.js

62 lines
1.1 KiB
JavaScript
Raw Normal View History

2024-06-15 00:26:10 +08:00
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'
})
}
2024-07-06 11:22:10 +08:00
// 查询话题评论数量
export function getCommentNum(id) {
return request({
url: '/postComment/comment/num/' + id,
method: 'get'
})
}
2024-06-15 00:26:10 +08:00
// 新增话题评论
export function addComment(data) {
return request({
url: '/postComment/comment',
method: 'post',
data: data
})
}
2024-07-06 11:22:10 +08:00
// 新增话题评论app
export function addCommentApp(data) {
return request({
url: '/postComment/comment/app',
method: 'post',
data: data
})
}
2024-06-15 00:26:10 +08:00
// 修改话题评论
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'
})
}