32 lines
833 B
Go
32 lines
833 B
Go
|
|
package deezer
|
||
|
|
|
||
|
|
type SearchArtistResults struct {
|
||
|
|
Data []Artist `json:"data"`
|
||
|
|
Total int `json:"total"`
|
||
|
|
Next string `json:"next"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type Artist struct {
|
||
|
|
ID int `json:"id"`
|
||
|
|
Name string `json:"name"`
|
||
|
|
Link string `json:"link"`
|
||
|
|
Picture string `json:"picture"`
|
||
|
|
PictureSmall string `json:"picture_small"`
|
||
|
|
PictureMedium string `json:"picture_medium"`
|
||
|
|
PictureBig string `json:"picture_big"`
|
||
|
|
PictureXl string `json:"picture_xl"`
|
||
|
|
NbAlbum int `json:"nb_album"`
|
||
|
|
NbFan int `json:"nb_fan"`
|
||
|
|
Radio bool `json:"radio"`
|
||
|
|
Tracklist string `json:"tracklist"`
|
||
|
|
Type string `json:"type"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type Error struct {
|
||
|
|
Error struct {
|
||
|
|
Type string `json:"type"`
|
||
|
|
Message string `json:"message"`
|
||
|
|
Code int `json:"code"`
|
||
|
|
} `json:"error"`
|
||
|
|
}
|