update order & product structs

This commit is contained in:
Alex Lushpai 2018-09-12 10:36:19 +03:00
parent 6ec32f4791
commit 5f509e4f2c

View File

@ -352,15 +352,15 @@ type (
Article string `json:"article,omitempty"`
Url string `json:"url,omitempty"`
Img string `json:"img,omitempty"`
Cost string `json:"cost,omitempty"`
Quantity string `json:"quantity,omitempty"`
Cost *MessageOrderCost `json:"cost,omitempty"`
Quantity *MessageOrderQuantity `json:"quantity,omitempty"`
}
MessageOrder struct {
Number string `json:"number"`
Url string `json:"url,omitempty"`
Date string `json:"date,omitempty"`
Cost string `json:"cost,omitempty"`
Cost *MessageOrderCost `json:"cost,omitempty"`
Status *MessageOrderStatus `json:"status,omitempty"`
Items []MessageOrderItem `json:"items,omitempty"`
}
@ -377,6 +377,16 @@ type (
Price string `json:"price,omitempty"`
}
MessageOrderCost struct {
Value float32 `json:"value,omitempty"`
Currency string `json:"currency"`
}
MessageOrderQuantity struct {
Value float32 `json:"value"`
Unit string `json:"unit"`
}
UserRef struct {
ID uint64 `json:"id"`
Avatar string `json:"avatar"`