mirror of https://github.com/doccano/doccano.git
pythonannotation-tooldatasetsactive-learningtext-annotationdatasetnatural-language-processingdata-labelingmachine-learning
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
574 B
18 lines
574 B
import { RelationItem } from '~/domain/models/tasks/relation'
|
|
|
|
export interface RelationRepository {
|
|
list(projectId: string, exampleId: number): Promise<RelationItem[]>
|
|
|
|
create(projectId: string, exampleId: number, relation: RelationItem): Promise<RelationItem>
|
|
|
|
update(
|
|
projectId: string,
|
|
exampleId: number,
|
|
relationId: number,
|
|
relationType: number
|
|
): Promise<RelationItem>
|
|
|
|
delete(projectId: string, exampleId: number, relationId: number): Promise<void>
|
|
|
|
bulkDelete(projectId: string, exampleId: number, relationIds: number[]): Promise<void>
|
|
}
|