fix profile

This commit is contained in:
2026-08-18 15:09:53 +03:00
parent 80a95ece5b
commit 6513a004d9
16 changed files with 268 additions and 26 deletions

View File

@@ -0,0 +1,21 @@
import '../entities/user_profile.dart';
import '../repositories/auth_repository.dart';
import '../repositories/pin_repository.dart';
import '../repositories/profile_repository.dart';
class DeleteProfileUsecase {
final UserProfileRepository repository;
final PinRepository _pinRepository;
final AuthRepository _authRepository;
DeleteProfileUsecase(this.repository, this._pinRepository, this._authRepository);
Future<void> call() {
_pinRepository.removePin();
repository.deleteProfile();
return _authRepository.logout();
}
}