Interface CommentsMapper

    • Method Detail

      • getNumberOfCommentsInPost

        int getNumberOfCommentsInPost​(int postId)
      • getComment

        Comment getComment​(int commentId)
      • getUserIdFromCommentId

        Integer getUserIdFromCommentId​(int commentId)
      • addComment

        int addComment​(Comment comment)
      • editComment

        int editComment​(@Param("id")
                        int commentId,
                        @Param("text")
                        String commentText)
      • deleteComment

        int deleteComment​(int commentId)
      • likeComment

        int likeComment​(@Param("commentId")
                        int commentId,
                        @Param("userId")
                        int userId)
      • unlikeComment

        int unlikeComment​(@Param("commentId")
                          int commentId,
                          @Param("userId")
                          int userId)