feat: clear all annotation (#22878)

Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
呆萌闷油瓶 2025-07-25 18:06:03 +08:00 • committed by GitHub
commit ee50a2bcd5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 113 additions and 4 deletions

View file

@ -63,3 +63,7 @@ export const delAnnotation = (appId: string, annotationId: string) => {
export const fetchHitHistoryList = (appId: string, annotationId: string, params: Record<string, any>) => {
return get(`apps/${appId}/annotations/${annotationId}/hit-histories`, { params })
}
export const clearAllAnnotations = (appId: string): Promise<any> => {
return del(`apps/${appId}/annotations`)
}