added company profile and fixed some parts
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user