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,23 @@
|
||||
/// Use Case: Mettre à jour la photo de profil
|
||||
library update_avatar;
|
||||
|
||||
import 'package:injectable/injectable.dart';
|
||||
import '../../../members/data/models/membre_complete_model.dart';
|
||||
import '../repositories/profile_repository.dart';
|
||||
|
||||
/// Met à jour la photo de profil (avatar) d'un membre
|
||||
/// Utilise l'endpoint de mise à jour générale avec copyWith
|
||||
@injectable
|
||||
class UpdateAvatar {
|
||||
final IProfileRepository _repository;
|
||||
|
||||
UpdateAvatar(this._repository);
|
||||
|
||||
/// Exécute le use case
|
||||
/// [id] : Identifiant du membre
|
||||
/// [photoUrl] : URL de la nouvelle photo de profil
|
||||
/// Retourne le profil mis à jour avec la nouvelle photo
|
||||
Future<MembreCompletModel> call(String id, String photoUrl) async {
|
||||
return _repository.updateAvatar(id, photoUrl);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user