mirror of https://github.com/gabehf/Koito.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
749 B
23 lines
749 B
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"`
|
|
TimeListened int64 `json:"time_listened"`
|
|
FirstListen int64 `json:"first_listen"`
|
|
}
|
|
|
|
// type SimpleAlbum struct {
|
|
// ID int32 `json:"id"`
|
|
// Title string `json:"title"`
|
|
// VariousArtists bool `json:"is_various_artists"`
|
|
// Image uuid.UUID `json:"image"`
|
|
// }
|