feat: feishu alert
This commit is contained in:
@@ -97,3 +97,18 @@ export function toggleEnable(data) {
|
||||
data,
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改评论状态
|
||||
* @param {*} { id, enable: boolean }
|
||||
* @param { enable: boolean } data 是否启用
|
||||
* @param { id: string } data 评论id
|
||||
* @returns
|
||||
*/
|
||||
export function commentStatus(data) {
|
||||
return request({
|
||||
url: 'management/api/rating/pk/comment/toggle',
|
||||
method: 'post',
|
||||
data,
|
||||
})
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ export function scoreRecordList(data) {
|
||||
|
||||
/**
|
||||
* 评论记录
|
||||
* @param {*} { pageNo, pageSize, userId?, topicId?, itemId?, trueUser? }
|
||||
* @param {*} { pageNo, pageSize, userId?, topicId?, itemId?, trueUser?, rootCommentId? }
|
||||
* @returns
|
||||
*/
|
||||
export function userCommentList(data) {
|
||||
@@ -42,7 +42,9 @@ export function userCommentList(data) {
|
||||
|
||||
/**
|
||||
* 评论
|
||||
* @param {*} { topicId, itemId, comment, userId }
|
||||
* @param {*} { topicId, itemId, comment, userId,parentCommentId, replyToCommentId, }
|
||||
* @param { parentCommentId: string } data 评论回复必传
|
||||
* @param { replyToCommentId: string } data 回复必传
|
||||
* @returns
|
||||
*/
|
||||
export function comment(data) {
|
||||
@@ -53,6 +55,21 @@ export function comment(data) {
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改评论状态
|
||||
* @param {*} { id, enable: boolean }
|
||||
* @param { enable: boolean } data 是否启用
|
||||
* @param { id: string } data 评论id
|
||||
* @returns
|
||||
*/
|
||||
export function commentStatus(data) {
|
||||
return request({
|
||||
url: 'management/api/rating/topicItemOperate/comment/toggle',
|
||||
method: 'post',
|
||||
data,
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 评论点赞
|
||||
* @param {*} { commentId, userId }
|
||||
|
||||
Reference in New Issue
Block a user