Merge remote-tracking branch 'upstream/main'

This commit is contained in:
Username1548
2024-12-11 19:24:23 +07:00
29 changed files with 2487 additions and 333 deletions

View File

@@ -0,0 +1,16 @@
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;
}
}
}