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
707 B

  1. import { CommentItem } from '@/models/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 CommentItemListRepository {
  12. listAll(projectId: string, q: string): Promise<CommentItem[]>
  13. list(projectId: string, docId: string): Promise<CommentItem[]>
  14. create(projectId: string, docId: string, text: string): Promise<CommentItem>
  15. update(projectId: string, docId: string, item: CommentItem): Promise<CommentItem>
  16. delete(projectId: string, docId: string, commentId: number): Promise<void>
  17. deleteBulk(projectId: string, items: number[]): Promise<void>
  18. }