fixed services
This commit is contained in:
@@ -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),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user