update news

This commit is contained in:
Phuoc Nguyen
2025-11-10 15:37:55 +07:00
parent 36bdf6613b
commit 67fd5ed142
17 changed files with 1016 additions and 211 deletions

View File

@@ -23,9 +23,13 @@ abstract class NewsRepository {
/// Get articles by category
Future<List<NewsArticle>> getArticlesByCategory(NewsCategory category);
/// Get a specific article by ID
/// Get a specific article by ID (from local cache)
Future<NewsArticle?> getArticleById(String articleId);
/// Get a specific article by ID from API
/// Uses frappe.client.get endpoint to fetch the full blog post detail
Future<NewsArticle?> getArticleByIdFromApi(String articleId);
/// Refresh articles from server
Future<List<NewsArticle>> refreshArticles();
}