feat: expose rss feed endpoint

This commit is contained in:
Tim
2025-08-18 19:15:12 +08:00
parent c84262eb88
commit 6b500466fc
10 changed files with 153 additions and 1 deletions

View File

@@ -106,4 +106,6 @@ public interface PostRepository extends JpaRepository<Post, Long> {
"WHERE p.createdAt >= :start AND p.createdAt < :end GROUP BY d ORDER BY d")
java.util.List<Object[]> countDailyRange(@Param("start") LocalDateTime start,
@Param("end") LocalDateTime end);
List<Post> findByStatusAndRssExcludedFalseOrderByCreatedAtDesc(PostStatus status, Pageable pageable);
}