feat: feishu alert

This commit is contained in:
zzc
2026-06-25 00:03:30 +08:00
parent bb819d07a1
commit a263e8a7e0
5 changed files with 245 additions and 10 deletions

View File

@@ -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,
})
}

View File

@@ -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 }