monstersirenfetch/albums.go
Yonah 905d3ce329
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:05:51 +09:00

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"`
}