Upstream sync

This commit is contained in:
Senad Uka
2023-10-17 11:51:48 +02:00
parent 3ff212d6d2
commit 5b1acd1c5f
2 changed files with 7 additions and 3 deletions

View File

@@ -123,14 +123,14 @@ func ConvertContractToContractResponse(contract Contract) ContractResponse {
ID uint "json:\"id\""
Name string "json:\"name\""
}{
ID: contract.SellerID,
ID: contract.SellerID,
Name: contract.SellerName,
},
Buyer: struct {
ID uint "json:\"id\""
Name string "json:\"name\""
}{
ID: contract.BuyerID,
ID: contract.BuyerID,
Name: contract.BuyerName,
},
Start: struct {
@@ -159,7 +159,7 @@ func ConvertContractToContractResponse(contract Contract) ContractResponse {
ID uint "json:\"id\""
Name string "json:\"name\""
}{
ID: contract.ProductID,
ID: contract.ProductID,
Name: contract.ProductName,
},
Description: contract.Description,
@@ -301,6 +301,7 @@ type CreateContractRequestPayload struct {
EndPlaceName string `json:"endPlaceName"`
EndLat float64 `json:"endLat"`
EndLon float64 `json:"endLon"`
Name string `json:"name"`
}
func (Contract) Update() (bool, error) {