This commit is contained in:
Phuoc Nguyen
2025-10-10 16:38:07 +07:00
parent e5b247d622
commit b94c158004
177 changed files with 25080 additions and 152 deletions

View File

@@ -0,0 +1,15 @@
import 'package:dartz/dartz.dart';
import '../../../../core/errors/failures.dart';
import '../entities/category.dart';
import '../repositories/category_repository.dart';
/// Use case to get all categories
class GetAllCategories {
final CategoryRepository repository;
GetAllCategories(this.repository);
Future<Either<Failure, List<Category>>> call() async {
return await repository.getAllCategories();
}
}