monstersirenfetch/albums.go
Yonah 9e187711d2
albums: struct for /api/albums
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>
2025-09-17 06:13:51 +09:00

17 lines
387 B
Go

package monstersirenfetch
// Albums is the response of /api/albums.
type Albums struct {
Code int `json:"code"`
Msg string `json:"msg"`
Data []Album `json:"data"`
}
// Album represents the metadata of an album.
type Album struct {
CID StringInt `json:"cid"`
Name string `json:"name"`
CoverURL string `json:"coverUrl"`
Artists []string `json:"artistes"`
}