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