Enhance TenderResponse Structure with TenderID Field

- Added a new field 'TenderID' to the TenderResponse structure, improving the data model for tender management.
- Updated the ToTenderResponse method to include the TenderID in the response, ensuring consistency in API outputs.
- This enhancement aligns with the ongoing improvements to the tender management system's data handling capabilities.
This commit is contained in:
n.nakhostin
2025-08-25 13:23:47 +03:30
parent f67e179ffc
commit 531f8e2baf
+3 -1
View File
@@ -47,6 +47,7 @@ type TenderResponse struct {
CountryCode string `json:"country_code"`
BuyerOrganization *OrganizationResponse `json:"buyer_organization"`
Status TenderStatus `json:"status"`
TenderID string `json:"tender_id"`
}
type OrganizationResponse struct {
@@ -70,10 +71,11 @@ func (t *Tender) ToTenderResponse() *TenderResponse {
TenderDeadline: t.TenderDeadline,
SubmissionDeadline: t.SubmissionDeadline,
ApplicationDeadline: t.ApplicationDeadline,
SubmissionURL: t.SubmissionURL,
CountryCode: t.CountryCode,
SubmissionURL: t.SubmissionURL,
BuyerOrganization: &OrganizationResponse{Name: t.BuyerOrganization.Name},
Status: t.Status,
TenderID: t.TenderID,
}
return response