Feat annotations panel (#22968)

This commit is contained in:
GuanMu 2025-07-30 13:40:48 +08:00 committed by GitHub
commit 4499cda186
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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 })
}