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:
@@ -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`)
|
||||
}
|
||||
|
Reference in New Issue
Block a user