move to network folder

This commit is contained in:
amirrezaghabeli
2025-08-12 14:44:18 +03:30
parent 4aeb9229a4
commit 8843408287
9 changed files with 12 additions and 12 deletions
+5 -5
View File
@@ -1,4 +1,4 @@
import '../../core/utils/app_exceptions.dart';
import '../../core/network/app_exceptions.dart';
import '../../core/utils/result.dart';
import '../models/user_model.dart';
import '../services/auth_service.dart';
@@ -15,9 +15,9 @@ class AuthRepository {
final user = UserModel(token: response['token'], name: response['name']);
return Result.ok(user);
} on Exception {
return Result.error(
AuthenticationException('Email or password is not correct.'),
);
}
return Result.error(
AuthenticationException('Email or password is not correct.'),
);
}
}
}