mirror of
https://github.com/gabehf/Koito.git
synced 2026-03-14 18:05:55 -07:00
fix: use sql rank (#148)
This commit is contained in:
parent
aa7fddd518
commit
d2d6924e05
20 changed files with 386 additions and 270 deletions
|
|
@ -28,6 +28,11 @@ type PaginatedResponse[T any] struct {
|
|||
CurrentPage int32 `json:"current_page"`
|
||||
}
|
||||
|
||||
type RankedItem[T any] struct {
|
||||
Item T `json:"item"`
|
||||
Rank int64 `json:"rank"`
|
||||
}
|
||||
|
||||
type ExportItem struct {
|
||||
ListenedAt time.Time
|
||||
UserID int32
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue