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