- Task #6: WebSocket /ws/dashboard + Kafka events (5 topics) * Backend: KafkaEventProducer, KafkaEventConsumer * Mobile: WebSocketService (reconnection, heartbeat, typed events) * DashboardBloc: Auto-refresh depuis WebSocket events - Finance Workflow: approbations + budgets (backend + mobile) * Backend: entities, services, resources, migrations Flyway V6 * Mobile: features finance_workflow complète avec BLoC - Corrections DI: interfaces IRepository partout * IProfileRepository, IOrganizationRepository, IMembreRepository * GetIt configuré avec @injectable - Spec-Kit: constitution + templates mis à jour * .specify/memory/constitution.md enrichie * Templates agent, plan, spec, tasks, checklist - Nettoyage: fichiers temporaires supprimés Signed-off-by: lions dev Team
24 lines
692 B
Dart
24 lines
692 B
Dart
/// 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();
|
|
}
|
|
}
|