profile dependencies added

This commit is contained in:
amirrezaghabeli
2025-08-17 09:46:33 +03:30
parent 3d0ca781bc
commit a00565cd4f
20 changed files with 1601 additions and 33 deletions
@@ -1,4 +1,5 @@
import 'package:tm_app/data/services/model/login_response/login_response_model.dart';
import 'package:tm_app/data/services/model/logout_response/logout_response.dart';
import '../../core/utils/result.dart';
import '../services/auth_service.dart';
@@ -15,4 +16,8 @@ class AuthRepository {
}) async {
return _authService.login(username: username, password: password);
}
Future<Result<LogoutResponse>> logout() async {
return _authService.logout();
}
}
@@ -0,0 +1,14 @@
import 'package:tm_app/data/services/profile_service.dart';
import '../../core/utils/result.dart';
import '../services/model/profile_response/profile_response.dart';
class ProfileRepository {
ProfileRepository({required ProfileService profileService})
: _profileService = profileService;
final ProfileService _profileService;
Future<Result<ProfileResponse>> getProfile() async {
return _profileService.getProfile();
}
}