mirror of
https://github.com/gabehf/Koito.git
synced 2026-03-13 17:40:26 -07:00
add all time rank to item pages
This commit is contained in:
parent
d08e05220f
commit
89161b5586
17 changed files with 274 additions and 181 deletions
|
|
@ -12,11 +12,5 @@ type Album struct {
|
|||
ListenCount int64 `json:"listen_count"`
|
||||
TimeListened int64 `json:"time_listened"`
|
||||
FirstListen int64 `json:"first_listen"`
|
||||
AllTimeRank int64 `json:"all_time_rank"`
|
||||
}
|
||||
|
||||
// type SimpleAlbum struct {
|
||||
// ID int32 `json:"id"`
|
||||
// Title string `json:"title"`
|
||||
// VariousArtists bool `json:"is_various_artists"`
|
||||
// Image uuid.UUID `json:"image"`
|
||||
// }
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ type Artist struct {
|
|||
TimeListened int64 `json:"time_listened"`
|
||||
FirstListen int64 `json:"first_listen"`
|
||||
IsPrimary bool `json:"is_primary,omitempty"`
|
||||
AllTimeRank int64 `json:"all_time_rank"`
|
||||
}
|
||||
|
||||
type SimpleArtist struct {
|
||||
|
|
|
|||
|
|
@ -13,4 +13,5 @@ type Track struct {
|
|||
AlbumID int32 `json:"album_id"`
|
||||
TimeListened int64 `json:"time_listened"`
|
||||
FirstListen int64 `json:"first_listen"`
|
||||
AllTimeRank int64 `json:"all_time_rank"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue