get prices methods
This commit is contained in:
parent
c772f0a4d2
commit
9e97f082fa
4 changed files with 324 additions and 14 deletions
|
|
@ -45,3 +45,20 @@ type extraDataDTO struct {
|
|||
MerchUuid string `json:"merch_uuid"`
|
||||
Links []originLink `json:"links"`
|
||||
}
|
||||
|
||||
// prices dtos
|
||||
type PriceEntry struct {
|
||||
CreatedAt int64 `json:"created_at"`
|
||||
Value int `json:"value"`
|
||||
}
|
||||
|
||||
type OriginWithPrices struct {
|
||||
Origin string `json:"origin"`
|
||||
Prices []PriceEntry
|
||||
}
|
||||
|
||||
type PricesResponse struct {
|
||||
Name string `json:"name"`
|
||||
MerchUuid string `json:"merch_uuid"`
|
||||
Origins []OriginWithPrices `json:"origins"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue