This repository has been archived on 2025-09-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
resolver/src/core/services/comments/ICommentService.ts
2018-01-12 13:40:59 +07:00

19 lines
501 B
TypeScript

import { User } from 'core/domain/users'
import { Comment } from 'core/domain/comments'
/**
* Comment service interface
*
* @export
* @interface ICommentService
*/
export interface ICommentService {
addComment: (comment: Comment) => Promise<string>
getComments: (postId: string, callback: (resultComments: { [postId: string]: { [commentId: string]: Comment } }) => void) => void
updateComment: (comment: Comment) => Promise<void>
deleteComment: (commentId: string) => Promise<void>
}