added get merch prices method
This commit is contained in:
parent
ecf00fef22
commit
ba78dd9772
5 changed files with 163 additions and 8 deletions
|
|
@ -1,5 +1,7 @@
|
|||
package merch
|
||||
|
||||
import "time"
|
||||
|
||||
type merchBundle struct {
|
||||
Merch *Merch
|
||||
Surugaya *Surugaya
|
||||
|
|
@ -30,3 +32,19 @@ type ListResponse struct {
|
|||
MerchUuid string `json:"merch_uuid"`
|
||||
Name string `json:"name"`
|
||||
}
|
||||
|
||||
type PriceEntry struct {
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
Value int `json:"value"`
|
||||
}
|
||||
|
||||
type OriginWithPrices struct {
|
||||
Origin Origin `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