import { AnnotationRepository } from '@/domain/models/tasks/annotationRepository' export class AnnotationApplicationService { constructor(readonly repository: AnnotationRepository) {} public async delete(projectId: string, docId: number, annotationId: number): Promise { try { await this.repository.delete(projectId, docId, annotationId) } catch (e: any) { console.log(e.response.data.detail) } } public async clear(projectId: string, docId: number): Promise { await this.repository.clear(projectId, docId) } public async autoLabel(projectId: string, docId: number): Promise { await this.repository.autoLabel(projectId, docId) } }