mirror of
https://git.sr.ht/~phw/scotty
synced 2025-04-30 05:37:05 +02:00
More conversion to mbtypes.MBID
This commit is contained in:
parent
13eb8342ab
commit
0d9bc74bc0
8 changed files with 82 additions and 81 deletions
|
@ -21,6 +21,8 @@ THE SOFTWARE.
|
|||
*/
|
||||
package funkwhale
|
||||
|
||||
import "go.uploadedlobster.com/mbtypes"
|
||||
|
||||
type ListeningsResult struct {
|
||||
Count int `json:"count"`
|
||||
Previous string `json:"previous"`
|
||||
|
@ -50,30 +52,30 @@ type FavoriteTrack struct {
|
|||
}
|
||||
|
||||
type Track struct {
|
||||
Id int `json:"int"`
|
||||
Artist Artist `json:"artist"`
|
||||
Album Album `json:"album"`
|
||||
Title string `json:"title"`
|
||||
Position int `json:"position"`
|
||||
DiscNumber int `json:"disc_number"`
|
||||
RecordingMBID string `json:"mbid"`
|
||||
Tags []string `json:"tags"`
|
||||
Uploads []Upload `json:"uploads"`
|
||||
Id int `json:"int"`
|
||||
Artist Artist `json:"artist"`
|
||||
Album Album `json:"album"`
|
||||
Title string `json:"title"`
|
||||
Position int `json:"position"`
|
||||
DiscNumber int `json:"disc_number"`
|
||||
RecordingMBID mbtypes.MBID `json:"mbid"`
|
||||
Tags []string `json:"tags"`
|
||||
Uploads []Upload `json:"uploads"`
|
||||
}
|
||||
|
||||
type Artist struct {
|
||||
Id int `json:"int"`
|
||||
Name string `json:"name"`
|
||||
ArtistMBID string `json:"mbid"`
|
||||
Id int `json:"int"`
|
||||
Name string `json:"name"`
|
||||
ArtistMBID mbtypes.MBID `json:"mbid"`
|
||||
}
|
||||
|
||||
type Album struct {
|
||||
Id int `json:"int"`
|
||||
Title string `json:"title"`
|
||||
AlbumArtist Artist `json:"artist"`
|
||||
ReleaseDate string `json:"release_date"`
|
||||
TrackCount int `json:"track_count"`
|
||||
ReleaseMBID string `json:"mbid"`
|
||||
Id int `json:"int"`
|
||||
Title string `json:"title"`
|
||||
AlbumArtist Artist `json:"artist"`
|
||||
ReleaseDate string `json:"release_date"`
|
||||
TrackCount int `json:"track_count"`
|
||||
ReleaseMBID mbtypes.MBID `json:"mbid"`
|
||||
}
|
||||
|
||||
type User struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue