added missing tender data to response

This commit is contained in:
Mazyar
2026-05-13 01:07:43 +03:30
parent c518cd3afb
commit 83c8ece91f
11 changed files with 1383 additions and 315 deletions
+11 -9
View File
@@ -445,15 +445,16 @@ func (w *NoticeWorker) ToTender(n *notice.Notice) (*tender.Tender, error) {
procurementLots := make([]tender.ProcurementLot, len(n.ProcurementLots))
for i, l := range n.ProcurementLots {
procurementLots[i] = tender.ProcurementLot{
LotID: l.LotID,
Title: l.Title,
Description: l.Description,
MainNatureOfContract: l.MainNatureOfContract,
MainClassification: l.MainClassification,
AdditionalClassifications: append([]string(nil), l.AdditionalClassifications...),
Duration: l.Duration,
EstimatedValue: l.EstimatedValue,
Currency: l.Currency,
LotID: l.LotID,
Title: l.Title,
Description: l.Description,
MainNatureOfContract: l.MainNatureOfContract,
MainClassification: l.MainClassification,
MainClassificationDescription: l.MainClassificationDescription,
AdditionalClassifications: append([]string(nil), l.AdditionalClassifications...),
Duration: l.Duration,
EstimatedValue: l.EstimatedValue,
Currency: l.Currency,
}
}
@@ -528,6 +529,7 @@ func (w *NoticeWorker) ToTender(n *notice.Notice) (*tender.Tender, error) {
t.BuyerProfileURL = n.BuyerProfileURL
t.TenderURL = n.TenderURL
t.MainClassification = n.MainClassification
t.MainClassificationDescription = n.MainClassificationDescription
t.AdditionalClassifications = n.AdditionalClassifications
t.OfficialLanguages = n.OfficialLanguages
t.Status = chooseTenderStatus(previousStatus, tender.TenderStatus(n.Status))