sort and filter added to tenders web
This commit is contained in:
@@ -18,9 +18,22 @@ class TendersService {
|
||||
required int limit,
|
||||
required int offset,
|
||||
String? query,
|
||||
String? sortBy,
|
||||
String? sortOrder,
|
||||
String? publicationDateFrom,
|
||||
String? publicationDateTo,
|
||||
}) async {
|
||||
final result = await _networkManager.makeRequest(
|
||||
TendersApi.getTenders(limit: limit, offset: offset, query: query),
|
||||
TendersApi.getTenders(
|
||||
limit: limit,
|
||||
offset: offset,
|
||||
query: query,
|
||||
sortBy: sortBy,
|
||||
sortOrder: sortOrder,
|
||||
publicationDateFrom: publicationDateFrom,
|
||||
publicationDateTo: publicationDateTo,
|
||||
),
|
||||
|
||||
method: 'GET',
|
||||
(json) => TendersResponse.fromJson(json),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user