Feat annotations panel (#22968)

This commit is contained in:
GuanMu
2025-07-30 13:40:48 +08:00
committed by GitHub
parent c05c5953a8
commit 4499cda186
8 changed files with 262 additions and 8 deletions

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