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

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  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(
  6. projectId: string,
  7. exampleId: number,
  8. relationId: number,
  9. relationType: number
  10. ): Promise<RelationItem>
  11. delete(projectId: string, exampleId: number, relationId: number): Promise<void>
  12. bulkDelete(projectId: string, exampleId: number, relationIds: number[]): Promise<void>
  13. }