add auth
This commit is contained in:
@@ -4,12 +4,16 @@
|
||||
/// This is an abstract interface following the Repository Pattern.
|
||||
library;
|
||||
|
||||
import 'package:worker/features/news/domain/entities/blog_category.dart';
|
||||
import 'package:worker/features/news/domain/entities/news_article.dart';
|
||||
|
||||
/// News Repository Interface
|
||||
///
|
||||
/// Provides methods to fetch and manage news articles.
|
||||
/// Provides methods to fetch and manage news articles and categories.
|
||||
abstract class NewsRepository {
|
||||
/// Get all blog categories from Frappe API
|
||||
Future<List<BlogCategory>> getBlogCategories();
|
||||
|
||||
/// Get all news articles
|
||||
Future<List<NewsArticle>> getAllArticles();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user