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:
n.nakhostin
2025-08-25 13:51:14 +03:30
parent 0e14a11daf
commit 3024998e7e
9 changed files with 89 additions and 88 deletions
+13 -12
View File
@@ -947,22 +947,20 @@ definitions:
type: object
tender_approval.ApprovalStatus:
enum:
- approved
- submitted
- rejected
type: string
x-enum-comments:
ApprovalStatusApproved: Company approved 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:
properties:
approved_tenders:
type: integer
company_id:
type: string
last_updated:
@@ -973,6 +971,8 @@ definitions:
type: integer
self_apply_count:
type: integer
submitted_tenders:
type: integer
total_approvals:
type: integer
type: object
@@ -1036,12 +1036,12 @@ definitions:
type: object
tender_approval.TenderApprovalStatsResponse:
properties:
approved_tenders:
type: integer
last_updated:
type: integer
rejected_tenders:
type: integer
submitted_tenders:
type: integer
total_approvals:
type: integer
type: object
@@ -3933,11 +3933,12 @@ paths:
get:
consumes:
- application/json
description: Retrieve tender approvals filtered by their status (approved, rejected)
description: Retrieve tender approvals filtered by their status (submitted,
rejected)
parameters:
- description: Tender approval status
enum:
- approved
- submitted
- rejected
in: path
name: status
@@ -5067,9 +5068,9 @@ paths:
in: query
name: submission_mode
type: string
- description: Filter by status Enums(approved, rejected)
- description: Filter by status Enums(submitted, rejected)
enum:
- approved
- submitted
- rejected
in: query
name: status