mirror of
https://github.com/gabehf/Koito.git
synced 2026-03-10 07:50:37 -07:00
20 lines
642 B
Go
20 lines
642 B
Go
package models
|
|
|
|
import "github.com/google/uuid"
|
|
|
|
type Album struct {
|
|
ID int32 `json:"id"`
|
|
MbzID *uuid.UUID `json:"musicbrainz_id"`
|
|
Title string `json:"title"`
|
|
Image *uuid.UUID `json:"image"`
|
|
Artists []SimpleArtist `json:"artists"`
|
|
VariousArtists bool `json:"is_various_artists"`
|
|
ListenCount int64 `json:"listen_count"`
|
|
}
|
|
|
|
// type SimpleAlbum struct {
|
|
// ID int32 `json:"id"`
|
|
// Title string `json:"title"`
|
|
// VariousArtists bool `json:"is_various_artists"`
|
|
// Image uuid.UUID `json:"image"`
|
|
// }
|