Skip to content

Commit

Permalink
Add new attrs to Go API
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffdaley committed Oct 18, 2023
1 parent 4688704 commit a6be4f1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions internal/api/documents_related_resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ type hermesDocumentRelatedResourceGetResponse struct {
DocumentType string `json:"documentType"`
DocumentNumber string `json:"documentNumber"`
SortOrder int `json:"sortOrder"`
Status string `json:"status"`
Owners []string `json:"owners"`
OwnerPhotos []string `json:"ownerPhotos"`
Product string `json:"product"`
}

func documentsResourceRelatedResourcesHandler(
Expand Down Expand Up @@ -153,6 +157,10 @@ func documentsResourceRelatedResourcesHandler(
DocumentType: doc.DocType,
DocumentNumber: doc.DocNumber,
SortOrder: hdrr.RelatedResource.SortOrder,
Status: doc.Status,
Owners: doc.Owners,
OwnerPhotos: doc.OwnerPhotos,
Product: doc.Product,
})
}

Expand Down

0 comments on commit a6be4f1

Please sign in to comment.