| | 3 | === Getting similar listings based on liked ones |
| | 4 | {{{ |
| | 5 | @Transactional(readOnly = true) |
| | 6 | public List<RecommendedListingProjection> getRecommendedListings(Long userId) { |
| | 7 | return recommendationRepository.getRecommendedListings(userId); |
| | 8 | } |
| | 9 | }}} |
| | 10 | === Getting the top 10 most active users |
| | 11 | {{{ |
| | 12 | @Transactional(readOnly = true) |
| | 13 | public List<UserActivityRankingProjection> getTopActiveUsers( |
| | 14 | LocalDateTime startTs, |
| | 15 | LocalDateTime endTs |
| | 16 | ) { |
| | 17 | return analyticsRepository.getTopActiveUsers(startTs, endTs); |
| | 18 | } |
| | 19 | }}} |