Update Tender Approval Status to Include Submitted State and Revise API Documentation
- Changed the approval status from "approved" to "submitted" in various locations, including entity definitions, forms, and service methods, to accurately reflect the tender approval process.
- Updated API documentation in Swagger JSON, YAML, and Go files to describe the new status options ("submitted" and "rejected") and their corresponding descriptions.
- Enhanced the tender approval statistics structures to include a count for submitted tenders, improving the overall data model for tender management.
- These changes ensure clarity in the tender approval workflow and enhance the usability of the API for clients interacting with tender approvals.
This commit is contained in:
+15
-15
@@ -4080,7 +4080,7 @@ const docTemplate = `{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Retrieve tender approvals filtered by their status (approved, rejected)",
|
||||
"description": "Retrieve tender approvals filtered by their status (submitted, rejected)",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -4094,7 +4094,7 @@ const docTemplate = `{
|
||||
"parameters": [
|
||||
{
|
||||
"enum": [
|
||||
"approved",
|
||||
"submitted",
|
||||
"rejected"
|
||||
],
|
||||
"type": "string",
|
||||
@@ -6018,11 +6018,11 @@ const docTemplate = `{
|
||||
},
|
||||
{
|
||||
"enum": [
|
||||
"approved",
|
||||
"submitted",
|
||||
"rejected"
|
||||
],
|
||||
"type": "string",
|
||||
"description": "Filter by status Enums(approved, rejected)",
|
||||
"description": "Filter by status Enums(submitted, rejected)",
|
||||
"name": "status",
|
||||
"in": "query"
|
||||
}
|
||||
@@ -7989,28 +7989,25 @@ const docTemplate = `{
|
||||
"tender_approval.ApprovalStatus": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"approved",
|
||||
"submitted",
|
||||
"rejected"
|
||||
],
|
||||
"x-enum-comments": {
|
||||
"ApprovalStatusApproved": "Company approved the tender",
|
||||
"ApprovalStatusRejected": "Company rejected the tender"
|
||||
"ApprovalStatusRejected": "Company rejected the tender",
|
||||
"ApprovalStatusSubmitted": "Company submitted the tender"
|
||||
},
|
||||
"x-enum-descriptions": [
|
||||
"Company approved the tender",
|
||||
"Company submitted the tender",
|
||||
"Company rejected the tender"
|
||||
],
|
||||
"x-enum-varnames": [
|
||||
"ApprovalStatusApproved",
|
||||
"ApprovalStatusSubmitted",
|
||||
"ApprovalStatusRejected"
|
||||
]
|
||||
},
|
||||
"tender_approval.CompanyTenderApprovalStatsResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"approved_tenders": {
|
||||
"type": "integer"
|
||||
},
|
||||
"company_id": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -8026,6 +8023,9 @@ const docTemplate = `{
|
||||
"self_apply_count": {
|
||||
"type": "integer"
|
||||
},
|
||||
"submitted_tenders": {
|
||||
"type": "integer"
|
||||
},
|
||||
"total_approvals": {
|
||||
"type": "integer"
|
||||
}
|
||||
@@ -8121,15 +8121,15 @@ const docTemplate = `{
|
||||
"tender_approval.TenderApprovalStatsResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"approved_tenders": {
|
||||
"type": "integer"
|
||||
},
|
||||
"last_updated": {
|
||||
"type": "integer"
|
||||
},
|
||||
"rejected_tenders": {
|
||||
"type": "integer"
|
||||
},
|
||||
"submitted_tenders": {
|
||||
"type": "integer"
|
||||
},
|
||||
"total_approvals": {
|
||||
"type": "integer"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user