Feat annotations panel (#22968)

This commit is contained in:
GuanMu
2025-07-30 13:40:48 +08:00
committed by GitHub
parent b0cb9324bb
commit 7138adf691
8 changed files with 262 additions and 8 deletions
+5
View File
@@ -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 })
}