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.
17 lines
628 B
17 lines
628 B
import { CommentItem, CommentItemList } from '~/domain/models/comment/comment'
|
|
|
|
export type SearchOption = { [key: string]: string | (string | null)[] }
|
|
|
|
export interface CommentRepository {
|
|
listAll(projectId: string, { limit, offset, q }: SearchOption): Promise<CommentItemList>
|
|
|
|
list(projectId: string, docId: number): Promise<CommentItem[]>
|
|
|
|
create(projectId: string, docId: number, text: string): Promise<CommentItem>
|
|
|
|
update(projectId: string, item: CommentItem): Promise<CommentItem>
|
|
|
|
delete(projectId: string, commentId: number): Promise<void>
|
|
|
|
deleteBulk(projectId: string, items: number[]): Promise<void>
|
|
}
|