fixed services

This commit is contained in:
amirrezaghabeli
2025-08-27 13:03:09 +03:30
parent 8a972784d6
commit bcd499843b
20 changed files with 112 additions and 108 deletions
+4
View File
@@ -0,0 +1,4 @@
class AuthApi {
static const String login = '/api/v1/profile/login';
static const String logout = '/api/v1/profile/logout';
}
+13
View File
@@ -0,0 +1,13 @@
class HomeApi {
static const String recommendedTenders = '/api/v1/tenders/recommend';
static String getRecommendedTenders({
required int limit,
required int offset,
}) {
return '$recommendedTenders?limit=$limit&offset=$offset';
}
static const String tenderApprovals = '/api/v1/tender-approvals';
static const String tenderApprovalStats = '/api/v1/tender-approvals/stats';
static const String statsCompany = '/api/v1/feedback/stats/company';
}
+4
View File
@@ -0,0 +1,4 @@
class ProfileApi {
static const String profile = '/api/v1/profile';
static const String companyProfile = '/api/v1/companies';
}
@@ -0,0 +1,6 @@
class TenderDetailApi {
static const String tenderDetails = '/api/v1/tenders/details';
static String getTenderDetails({required String tenderId}) {
return '$tenderDetails/$tenderId';
}
}
+20
View File
@@ -0,0 +1,20 @@
class TendersApi {
static const String tenders = '/api/v1/tenders';
static String getTenders({required int limit, required int offset}) {
return '$tenders?limit=$limit&offset=$offset';
}
static const String feedbackTender = '/api/v1/feedback/tender';
static String getFeedbackForTender({required String tenderId}) {
return '$feedbackTender/$tenderId';
}
static const String feedback = '/api/v1/feedback';
static const String tenderApprovals = '/api/v1/tender-approvals';
static const String tenderApprovalsTender = '/api/v1/tender-approvals/tender';
static String getTenderApprovalById({required String tenderId}) {
return '$tenderApprovalsTender/$tenderId';
}
}
@@ -0,0 +1,4 @@
class YourTendersApi {
static const String tenderApprovalsStatus =
'/api/v1/tender-approvals?status=submitted';
}