19 lines
466 B
Go
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"`
|
|
}
|