monstersirenfetch/albums.go
Yonah 7dd470f9ae
generic: struct for response common fields
This is common across all responses.

Signed-off-by: Yonah <contrib@gensokyo.uk>
2025-09-17 06:57:16 +09:00

16 lines
407 B
Go

package monstersirenfetch
// AlbumsResponse is the response of /api/albums.
type AlbumsResponse Response[AlbumsData]
// AlbumsData is the type of [AlbumsResponse] data.
type AlbumsData []Album
// 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"`
}