Initial commit: unionflow-mobile-apps
Application Flutter complète (sans build artifacts). Signed-off-by: lions dev Team
This commit is contained in:
23
lib/features/settings/domain/usecases/get_settings.dart
Normal file
23
lib/features/settings/domain/usecases/get_settings.dart
Normal file
@@ -0,0 +1,23 @@
|
||||
/// Use Case: Récupérer la configuration système
|
||||
library get_settings;
|
||||
|
||||
import 'package:injectable/injectable.dart';
|
||||
import '../repositories/system_config_repository.dart';
|
||||
import '../../data/models/system_config_model.dart';
|
||||
|
||||
/// Récupère la configuration système actuelle
|
||||
///
|
||||
/// Use case pour récupérer tous les paramètres de configuration système
|
||||
/// Endpoint: GET /api/system/config
|
||||
@injectable
|
||||
class GetSettings {
|
||||
final ISystemConfigRepository _repository;
|
||||
|
||||
GetSettings(this._repository);
|
||||
|
||||
/// Exécute le use case
|
||||
/// Retourne la configuration système actuelle (SystemConfigModel)
|
||||
Future<SystemConfigModel> call() async {
|
||||
return _repository.getConfig();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user