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.

25 lines
714 B

  1. import { CommentItem } from '~/domain/models/comment/comment'
  2. export interface CommentItemResponse {
  3. id: number,
  4. user: number,
  5. username: string,
  6. document: number,
  7. document_text: string,
  8. text: string,
  9. created_at: string
  10. }
  11. export interface CommentRepository {
  12. listAll(projectId: string, q: string): Promise<CommentItem[]>
  13. list(projectId: string, docId: number): Promise<CommentItem[]>
  14. create(projectId: string, docId: number, text: string): Promise<CommentItem>
  15. update(projectId: string, docId: number, item: CommentItem): Promise<CommentItem>
  16. delete(projectId: string, docId: number, commentId: number): Promise<void>
  17. deleteBulk(projectId: string, items: number[]): Promise<void>
  18. }