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