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.
 
 
 
 
 
 

13 lines
564 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>
}