perf(models): remove lists from models' fields
This commit is contained in:
parent
a1bb6a2dbc
commit
778fcf641a
@ -31,10 +31,9 @@ type PersonBrief struct {
|
|||||||
|
|
||||||
type Person struct {
|
type Person struct {
|
||||||
PersonBrief
|
PersonBrief
|
||||||
Birthdate string `json:"birthdate"`
|
Birthdate string `json:"birthdate"`
|
||||||
Deathdate string `json:"deathdate"`
|
Deathdate string `json:"deathdate"`
|
||||||
Credits []PersonCredit `json:"credits"`
|
Info string `json:"info"`
|
||||||
Info string `json:"info"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ArtistBrief struct {
|
type ArtistBrief struct {
|
||||||
@ -44,25 +43,22 @@ type ArtistBrief struct {
|
|||||||
|
|
||||||
type Artist struct {
|
type Artist struct {
|
||||||
ArtistBrief
|
ArtistBrief
|
||||||
Tracks []TrackBrief `json:"tracks"`
|
Info string `json:"info"`
|
||||||
Info string `json:"info"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type TrackBrief struct {
|
type TrackBrief struct {
|
||||||
ID string `json:"id"`
|
ID string `json:"id"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Artists []ArtistBrief `json:"artists"`
|
Duration float32 `json:"duration"`
|
||||||
Duration float32 `json:"duration"`
|
ReleaseDate string `json:"release_date"`
|
||||||
ReleaseDate string `json:"release_date"`
|
AcquireDatetime time.Time `json:"acquire_datetime"`
|
||||||
AcquireDatetime time.Time `json:"acquire_datetime"`
|
ISRC string `json:"isrc"`
|
||||||
ISRC string `json:"isrc"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type Track struct {
|
type Track struct {
|
||||||
TrackBrief
|
TrackBrief
|
||||||
Credits []TrackCredit `json:"credits"`
|
Lyrics string `json:"lyrics"`
|
||||||
Lyrics string `json:"lyrics"`
|
Info string `json:"info"`
|
||||||
Info string `json:"info"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type Alias struct {
|
type Alias struct {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user