mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
Feat annotations panel (#22968)
This commit is contained in:
@ -60,6 +60,11 @@ export const delAnnotation = (appId: string, annotationId: string) => {
|
||||
return del(`apps/${appId}/annotations/${annotationId}`)
|
||||
}
|
||||
|
||||
export const delAnnotations = (appId: string, annotationIds: string[]) => {
|
||||
const params = annotationIds.map(id => `annotation_id=${id}`).join('&')
|
||||
return del(`/apps/${appId}/annotations?${params}`)
|
||||
}
|
||||
|
||||
export const fetchHitHistoryList = (appId: string, annotationId: string, params: Record<string, any>) => {
|
||||
return get(`apps/${appId}/annotations/${annotationId}/hit-histories`, { params })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user