|
| 1 | +package models |
| 2 | + |
| 3 | +type ArtworkResponse struct { |
| 4 | + ID string `json:"id"` |
| 5 | + Title string `json:"title"` |
| 6 | + Artist string `json:"artist"` |
| 7 | + ImageID string `json:"image_id"` |
| 8 | + ImageURL string `json:"image_url"` |
| 9 | + Museum string `json:"museum"` |
| 10 | + MuseumURL string `json:"museum_url"` |
| 11 | + Attribution string `json:"attribution"` |
| 12 | + Colors ColorSpectrum `json:"colors"` |
| 13 | + Related string `json:"related"` |
| 14 | + Copyright string `json:"copyright"` |
| 15 | + Description string `json:"description"` |
| 16 | + City string `json:"city"` |
| 17 | +} |
| 18 | + |
| 19 | +type ArtworkMetadata struct { |
| 20 | + ID string `json:"id"` |
| 21 | + ImageID string `json:"image_id"` |
| 22 | + Title string `json:"title"` |
| 23 | + Artist string `json:"artist"` |
| 24 | + Date string `json:"date"` |
| 25 | + Medium string `json:"medium"` |
| 26 | + Dimensions string `json:"dimensions"` |
| 27 | + ImageURL string `json:"imageUrl"` |
| 28 | + IIIFURL string `json:"iiif_url"` |
| 29 | + Gallery string `json:"gallery"` |
| 30 | + Museum string `json:"museum"` |
| 31 | + MuseumURL string `json:"museumUrl"` |
| 32 | + Description string `json:"description,omitempty"` |
| 33 | + Related string `json:"related"` |
| 34 | + Colors ColorSpectrum `json:"colors"` |
| 35 | + Attribution string `json:"attribution"` |
| 36 | + Copyright string `json:"copyright"` |
| 37 | +} |
| 38 | + |
| 39 | +type ColorSpectrum struct { |
| 40 | + Profile string `json:"profile"` |
| 41 | + Palette string `json:"palette"` |
| 42 | +} |
0 commit comments