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
+20
View File
@@ -0,0 +1,20 @@
import 'package:tm_app/data/services/model/profile_response/profile_response.dart';
import '../../core/network/network_manager.dart';
import '../../core/utils/result.dart';
class ProfileService {
ProfileService({required NetworkManager networkManager})
: _networkManager = networkManager;
final NetworkManager _networkManager;
Future<Result<ProfileResponse>> getProfile() async {
final result = await _networkManager.makeRequest(
'/admin/v1/profile',
method: 'GET',
(json) => ProfileResponse.fromJson(json),
);
return result;
}
}