feat: add search module

This commit is contained in:
Tim
2025-07-01 17:52:02 +08:00
parent 93c23dd9df
commit 2fa6af6304
7 changed files with 304 additions and 0 deletions

View File

@@ -12,4 +12,5 @@ public interface CommentRepository extends JpaRepository<Comment, Long> {
List<Comment> findByPostAndParentIsNullOrderByCreatedAtAsc(Post post);
List<Comment> findByParentOrderByCreatedAtAsc(Comment parent);
List<Comment> findByAuthorOrderByCreatedAtDesc(User author, Pageable pageable);
List<Comment> findByContentContainingIgnoreCase(String keyword);
}