Funkwhale: Implemented LovesExport

This commit is contained in:
Philipp Wolfer 2023-11-12 15:57:18 +01:00
parent 48c8843f91
commit 9316838d59
No known key found for this signature in database
GPG key ID: 8FDF744D4919943B
6 changed files with 446 additions and 13 deletions

View file

@ -35,6 +35,20 @@ type Listening struct {
CreationDate string `json:"creation_date"`
}
type FavoriteTracksResult struct {
Count int `json:"count"`
Previous string `json:"previous"`
Next string `json:"next"`
Results []FavoriteTrack `json:"results"`
}
type FavoriteTrack struct {
Id int `json:"int"`
User User `json:"user"`
Track Track `json:"track"`
CreationDate string `json:"creation_date"`
}
type Track struct {
Id int `json:"int"`
Artist Artist `json:"artist"`