This also includes tests against a sample response from the https://monster-siren.hypergryph.com/api/albums endpoint. Signed-off-by: Yonah <contrib@gensokyo.uk>
17 lines
391 B
Go
17 lines
391 B
Go
package monstersirenfetch
|
|
|
|
// Albums is the response of /api/albums.
|
|
type Albums struct {
|
|
Code int `json:"code"`
|
|
Msg string `json:"msg"`
|
|
Data []AlbumData `json:"data"`
|
|
}
|
|
|
|
// AlbumData represents an album.
|
|
type AlbumData struct {
|
|
CID StringInt `json:"cid"`
|
|
Name string `json:"name"`
|
|
CoverURL string `json:"coverUrl"`
|
|
Artists []string `json:"artistes"`
|
|
}
|