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
parent 31985d94fa
commit ee50a2bcd5
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`)
}