feat: WebSocket temps réel + Finance Workflow + corrections
- 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
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
/// Service pour la gestion des organisations
|
||||
/// Couche de logique métier entre le repository et l'interface utilisateur
|
||||
/// Helpers pour tri, filtrage local et recherche
|
||||
library organization_service;
|
||||
|
||||
import 'package:injectable/injectable.dart';
|
||||
import '../models/organization_model.dart';
|
||||
import '../repositories/organization_repository.dart';
|
||||
import '../../domain/repositories/organization_repository.dart';
|
||||
|
||||
/// Service de gestion des organisations
|
||||
/// Service de gestion des organisations (helpers uniquement)
|
||||
@injectable
|
||||
class OrganizationService {
|
||||
final OrganizationRepository _repository;
|
||||
final IOrganizationRepository _repository;
|
||||
|
||||
OrganizationService(this._repository);
|
||||
|
||||
@@ -28,6 +30,15 @@ class OrganizationService {
|
||||
}
|
||||
}
|
||||
|
||||
/// Récupère les organisations du membre connecté (pour admin d'organisation)
|
||||
Future<List<OrganizationModel>> getMesOrganisations() async {
|
||||
try {
|
||||
return await _repository.getMesOrganisations();
|
||||
} catch (e) {
|
||||
throw Exception('Erreur lors de la récupération de mes organisations: $e');
|
||||
}
|
||||
}
|
||||
|
||||
/// Récupère une organisation par son ID
|
||||
Future<OrganizationModel?> getOrganizationById(String id) async {
|
||||
if (id.isEmpty) {
|
||||
|
||||
Reference in New Issue
Block a user