Feat annotations panel (#22968)
This commit is contained in:
parent
c05c5953a8
commit
4499cda186
8 changed files with 262 additions and 8 deletions
|
|
@ -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 })
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue