Interface CommentService

All Known Implementing Classes:
CommentServiceImpl

public interface CommentService
Сервис для работы с комментариями.
Этот интерфейс предоставляет методы для операций с комментариями, таких как их добавление, удаление, обновление, получение и проверка авторства.
  • Method Details

    • getAdComments

      Comments getAdComments(int id)
    • addComment

      Comment addComment(int id, CreateOrUpdateComment comment)
    • updateComment

      Comment updateComment(int adId, int commentId, CreateOrUpdateComment comment)
    • deleteComment

      void deleteComment(int adId, int commentId)
    • isCommentAuthor

      boolean isCommentAuthor(int adId, int commentId, String currentUsername)