mirror of https://github.com/doccano/doccano.git
pythondatasetsactive-learningtext-annotationdatasetnatural-language-processingdata-labelingmachine-learningannotation-tool
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
25 lines
714 B
import { CommentItem } from '~/domain/models/comment/comment'
|
|
|
|
export interface CommentItemResponse {
|
|
id: number,
|
|
user: number,
|
|
username: string,
|
|
document: number,
|
|
document_text: string,
|
|
text: string,
|
|
created_at: string
|
|
}
|
|
|
|
export interface CommentRepository {
|
|
listAll(projectId: string, q: string): Promise<CommentItem[]>
|
|
|
|
list(projectId: string, docId: number): Promise<CommentItem[]>
|
|
|
|
create(projectId: string, docId: number, text: string): Promise<CommentItem>
|
|
|
|
update(projectId: string, docId: number, item: CommentItem): Promise<CommentItem>
|
|
|
|
delete(projectId: string, docId: number, commentId: number): Promise<void>
|
|
|
|
deleteBulk(projectId: string, items: number[]): Promise<void>
|
|
}
|