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

  1. import { RelationItem } from '~/domain/models/tasks/relation'
  2. export interface RelationRepository {
  3. list(projectId: string, exampleId: number): Promise<RelationItem[]>
  4. create(projectId: string, exampleId: number, relation: RelationItem): Promise<RelationItem>
  5. update(projectId: string, exampleId: number, relationId: number, relationType: number): Promise<RelationItem>
  6. delete(projectId: string, exampleId: number, relationId: number): Promise<void>
  7. bulkDelete(projectId: string, exampleId: number, relationIds: number[]): Promise<void>
  8. }