mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-03-01 09:30:48 +08:00
feat: implement medal feature
This commit is contained in:
@@ -30,4 +30,6 @@ public interface CommentRepository extends JpaRepository<Comment, Long> {
|
||||
@org.springframework.data.jpa.repository.Query("SELECT COUNT(c) FROM Comment c WHERE c.post.id = :postId")
|
||||
long countByPostId(@org.springframework.data.repository.query.Param("postId") Long postId);
|
||||
|
||||
long countByAuthor_Id(Long userId);
|
||||
|
||||
}
|
||||
|
||||
@@ -93,4 +93,6 @@ public interface PostRepository extends JpaRepository<Post, Long> {
|
||||
long countByCategory_Id(Long categoryId);
|
||||
|
||||
long countDistinctByTags_Id(Long tagId);
|
||||
|
||||
long countByAuthor_Id(Long userId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user