forked from eatvio/eatvio_app
17 lines
415 B
Dart
17 lines
415 B
Dart
import 'package:eatvio_app/features/plans/models/plan_pagination_model.dart';
|
|
import 'package:eatvio_app/features/plans/services/plans_service.dart';
|
|
|
|
class PlansRepository {
|
|
final PlansService plansService;
|
|
|
|
const PlansRepository({required this.plansService});
|
|
|
|
Future<PlanPaginationModel> getPlans() async {
|
|
try {
|
|
return await plansService.getPlans();
|
|
} catch (e) {
|
|
rethrow;
|
|
}
|
|
}
|
|
}
|