get prices methods

This commit is contained in:
nquidox 2026-03-10 23:44:24 +03:00
parent c772f0a4d2
commit 9e97f082fa
4 changed files with 324 additions and 14 deletions

View file

@ -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"`
}