Implement tender workflows and dashboard integration
continuous-integration/drone/push Build encountered an error

This commit is contained in:
AmirReza Jamali
2026-07-14 11:12:09 +03:30
parent ce170f9bc8
commit 72881df210
29 changed files with 1820 additions and 159 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ class HomeApi {
}
static const String tenderApprovalStats = '/api/v1/tender-approvals/stats';
static const String statsCompany = '/api/v1/feedback/stats/company';
static const String statsCustomer = '/api/v1/feedback/stats/customer';
static const String checkUnreadNotifications =
'/api/v1/notifications?seen=false&limit=1&event_type=PUSH';
}
+2 -2
View File
@@ -9,8 +9,8 @@ class LikedTendersApi {
required String dateTo,
}) {
if (dateFrom.isNotEmpty && dateTo.isNotEmpty) {
return '$tendersFeedback?feedback_type=$feedbackType&limit=$limit&offset=$offset&date_from=$dateFrom&date_to=$dateTo';
return '$tendersFeedback?feedback_type=$feedbackType&limit=$limit&offset=$offset&include_total=true&date_from=$dateFrom&date_to=$dateTo';
}
return '$tendersFeedback?feedback_type=$feedbackType&limit=$limit&offset=$offset';
return '$tendersFeedback?feedback_type=$feedbackType&limit=$limit&offset=$offset&include_total=true';
}
}
@@ -0,0 +1,10 @@
class TenderSubmissionsApi {
static const String base = '/api/v1/tender-submissions';
static const String list = base;
static const String stats = '$base/stats';
static String byId(String id) => '$base/$id';
static String byTender(String tenderId) => '$base/tender/$tenderId';
static String ensure(String tenderId) => '$base/tender/$tenderId/ensure';
static String status(String id) => '$base/$id/status';
}