feat: native import & export

This commit is contained in:
Gabe Farrell 2025-06-18 06:49:05 -04:00
parent 1d02cede49
commit 7b0cff0a07
13 changed files with 645 additions and 2 deletions

View file

@ -1,7 +1,7 @@
package models
type Alias struct {
ID int32 `json:"id"`
ID int32 `json:"id,omitempty"`
Alias string `json:"alias"`
Source string `json:"source"`
Primary bool `json:"is_primary"`

View file

@ -17,3 +17,15 @@ type SimpleArtist struct {
ID int32 `json:"id"`
Name string `json:"name"`
}
type ArtistWithFullAliases struct {
ID int32 `json:"id"`
MbzID *uuid.UUID `json:"musicbrainz_id"`
Name string `json:"name"`
Aliases []Alias `json:"aliases"`
Image *uuid.UUID `json:"image"`
ImageSource string `json:"image_source,omitempty"`
ListenCount int64 `json:"listen_count"`
TimeListened int64 `json:"time_listened"`
IsPrimary bool `json:"is_primary,omitempty"`
}