Record user visits on posts listing

This commit is contained in:
Tim
2025-07-14 12:42:34 +08:00
parent 0a36ad0f59
commit 2c3c74d584
12 changed files with 214 additions and 7 deletions

View File

@@ -87,4 +87,12 @@ public class ReactionService {
public java.util.List<Long> topCommentIds(String username, int limit) {
return reactionRepository.findTopCommentIds(username, org.springframework.data.domain.PageRequest.of(0, limit));
}
public long countLikesSent(String username) {
return reactionRepository.countLikesSent(username);
}
public long countLikesReceived(String username) {
return reactionRepository.countLikesReceived(username);
}
}