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:
@@ -0,0 +1,20 @@
|
||||
/// Use Case: Récupérer le profil du membre connecté
|
||||
library get_profile;
|
||||
|
||||
import 'package:injectable/injectable.dart';
|
||||
import '../../../members/data/models/membre_complete_model.dart';
|
||||
import '../repositories/profile_repository.dart';
|
||||
|
||||
/// Récupère le profil du membre connecté via l'endpoint /api/membres/me
|
||||
@injectable
|
||||
class GetProfile {
|
||||
final IProfileRepository _repository;
|
||||
|
||||
GetProfile(this._repository);
|
||||
|
||||
/// Exécute le use case
|
||||
/// Retourne le profil du membre connecté ou null si non trouvé
|
||||
Future<MembreCompletModel?> call() async {
|
||||
return _repository.getMe();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user