Initial commit: unionflow-mobile-apps
Application Flutter complète (sans build artifacts). Signed-off-by: lions dev Team
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
/// Use Case: Supprimer une organisation
|
||||
library delete_organization;
|
||||
|
||||
import 'package:injectable/injectable.dart';
|
||||
import '../repositories/organization_repository.dart';
|
||||
|
||||
/// Supprime une organisation (SuperAdmin uniquement)
|
||||
@injectable
|
||||
class DeleteOrganization {
|
||||
final IOrganizationRepository _repository;
|
||||
|
||||
DeleteOrganization(this._repository);
|
||||
|
||||
/// Exécute le use case
|
||||
/// [id] : Identifiant de l'organisation à supprimer
|
||||
/// Lève une exception si organisation non trouvée ou suppression impossible
|
||||
/// Note: Peut être un soft delete selon l'implémentation backend
|
||||
Future<void> call(String id) async {
|
||||
return _repository.deleteOrganization(id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user