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:
parent
31985d94fa
commit
ee50a2bcd5
8 changed files with 113 additions and 4 deletions
|
|
@ -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`)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue