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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user