update news
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user