Move all firbase dependencies from actions layer to firebaseService layer (#13)
This commit is contained in:
@@ -1,15 +1,18 @@
|
||||
import { User } from 'domain/users'
|
||||
|
||||
|
||||
|
||||
import { Comment } from 'domain/comments'
|
||||
|
||||
/**
|
||||
* Comment service interface
|
||||
*
|
||||
*
|
||||
* @export
|
||||
* @interface ICommentService
|
||||
*/
|
||||
export interface ICommentService {
|
||||
|
||||
addComment: (postId: string, comment: Comment) => Promise<string>
|
||||
getComments: () => Promise< {[postId: string]: {[commentId: string]: Comment}} >
|
||||
updateComment: (userId: string, postId: string, comment: Comment) => Promise<void>
|
||||
deleteComment: (commentId: string, postId: string) => Promise<void>
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,4 +2,4 @@ import { ICommentService } from './ICommentService'
|
||||
|
||||
export {
|
||||
ICommentService
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user