fixed services

This commit is contained in:
amirrezaghabeli
2025-08-27 13:03:09 +03:30
parent 8a972784d6
commit bcd499843b
20 changed files with 112 additions and 108 deletions
+3 -2
View File
@@ -1,3 +1,4 @@
import 'package:tm_app/data/services/api/profile_api.dart';
import 'package:tm_app/data/services/model/company_profile_response/company_profile_response.dart';
import 'package:tm_app/data/services/model/profile_response/profile_response.dart';
@@ -12,7 +13,7 @@ class ProfileService {
Future<Result<ProfileResponse>> getProfile() async {
final result = await _networkManager.makeRequest(
'/api/v1/profile',
ProfileApi.profile,
method: 'GET',
(json) => ProfileResponse.fromJson(json),
);
@@ -21,7 +22,7 @@ class ProfileService {
Future<Result<CompanyProfileResponse>> getCompanyProfile() async {
final result = await _networkManager.makeRequest(
'/api/v1/companies',
ProfileApi.companyProfile,
method: 'GET',
(json) => CompanyProfileResponse.fromJson(json),
);