added company profile and fixed some parts

This commit is contained in:
amirrezaghabeli
2025-08-20 14:46:06 +03:30
parent 266d974786
commit 37f4b20bfa
14 changed files with 844 additions and 66 deletions
+10
View File
@@ -1,3 +1,4 @@
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';
import '../../core/network/network_manager.dart';
@@ -17,4 +18,13 @@ class ProfileService {
);
return result;
}
Future<Result<CompanyProfileResponse>> getCompanyProfile() async {
final result = await _networkManager.makeRequest(
'/api/v1/companies',
method: 'GET',
(json) => CompanyProfileResponse.fromJson(json),
);
return result;
}
}