forked from eatvio/eatvio_app
19 lines
503 B
Dart
19 lines
503 B
Dart
import 'package:eatvio_app/features/glossary/models/glossary_model.dart';
|
|
import 'package:eatvio_app/features/glossary/services/glossary_service.dart';
|
|
|
|
class GlossaryRepository {
|
|
final GlossaryService glossaryService;
|
|
|
|
GlossaryRepository({
|
|
required this.glossaryService,
|
|
});
|
|
|
|
Future<List<GlossaryModel>> getGlossaryListByQuery(String query) async {
|
|
try {
|
|
return (await glossaryService.getGlossaryByQuery(query: query)).glossariesList;
|
|
} catch (e) {
|
|
rethrow;
|
|
}
|
|
}
|
|
}
|