merge with conflict
This commit is contained in:
@@ -9,13 +9,11 @@ class HomeApi {
|
||||
|
||||
static const String tenderApprovalsBase = '/api/v1/tender-approvals';
|
||||
|
||||
static String getYourTenders({
|
||||
required int limit,
|
||||
required int offset,
|
||||
}) {
|
||||
static String getYourTenders({required int limit, required int offset}) {
|
||||
return '$tenderApprovalsBase?limit=$limit&offset=$offset';
|
||||
}
|
||||
|
||||
static const String tenderApprovalStats = '/api/v1/tender-approvals/stats';
|
||||
static const String statsCompany = '/api/v1/feedback/stats/company';
|
||||
static const String checkUnreadNotifications = '/api/v1/notifications?seen=false&limit=1';
|
||||
}
|
||||
|
||||
@@ -41,4 +41,13 @@ class HomeService {
|
||||
);
|
||||
return result;
|
||||
}
|
||||
|
||||
Future<Result<Map<String, dynamic>>> checkUnreadNotifications() async {
|
||||
final result = await _networkManager.makeRequest(
|
||||
HomeApi.checkUnreadNotifications,
|
||||
(json) => json,
|
||||
method: 'GET',
|
||||
);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user