Yonah ea54772c03
song: struct for /api/song/%d
This also includes tests against a sample response from the
https://monster-siren.hypergryph.com/api/song/048794 endpoint.

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

11 lines
259 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"`
}