added CreatedAt to tender response
This commit is contained in:
@@ -64,6 +64,7 @@ type TenderResponse struct {
|
|||||||
BuyerOrganization *OrganizationResponse `json:"buyer_organization"`
|
BuyerOrganization *OrganizationResponse `json:"buyer_organization"`
|
||||||
Status TenderStatus `json:"status"`
|
Status TenderStatus `json:"status"`
|
||||||
TenderID string `json:"tender_id"`
|
TenderID string `json:"tender_id"`
|
||||||
|
CreatedAt int64 `json:"created_at"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type OrganizationResponse struct {
|
type OrganizationResponse struct {
|
||||||
@@ -97,6 +98,7 @@ func (t *Tender) ToResponse() *TenderResponse {
|
|||||||
BuyerOrganization: org,
|
BuyerOrganization: org,
|
||||||
Status: t.Status,
|
Status: t.Status,
|
||||||
TenderID: t.TenderID,
|
TenderID: t.TenderID,
|
||||||
|
CreatedAt: t.CreatedAt,
|
||||||
}
|
}
|
||||||
|
|
||||||
return response
|
return response
|
||||||
|
|||||||
Reference in New Issue
Block a user