Files
eatvio_app/lib/features/plans/repositories/plans_repository.dart
2024-12-06 13:46:15 +03:00

17 lines
446 B
Dart

import 'package:eatvio_app/features/feed/models/plan_pagination_model.dart';
import 'package:eatvio_app/features/plans/services/plans_service.dart';
class PlansRepository {
final PlansService plansService;
PlansRepository({required this.plansService});
Future<List<PlanModel>> getPlansBySlug(String slug) async {
try {
return (await plansService.getPlansBySlug(author: slug)).data;
} catch (e) {
rethrow;
}
}
}