Yonah ab40d570eb
generic: struct for response common fields
This is common across all responses.

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

19 lines
435 B
Go

package monstersirenfetch
// Songs is the response of /api/songs.
type Songs Response[SongData]
// SongData represents [Songs.Data].
type SongData = struct {
List []Song `json:"list"`
Autoplay string `json:"autoplay"`
}
// Song represents the metadata of a song.
type Song struct {
CID StringInt `json:"cid"`
Name string `json:"name"`
AlbumCID StringInt `json:"albumCid"`
Artists []string `json:"artists"`
}