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

19 lines
466 B
Go

package monstersirenfetch
// SongsResponse is the response of /api/songs.
type SongsResponse Response[SongsData]
// SongsData is the type of [SongsResponse] data.
type SongsData = 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"`
}