mirror of
https://github.com/gabehf/Koito.git
synced 2026-03-15 10:25:55 -07:00
chore: initial public commit
This commit is contained in:
commit
fc9054b78c
250 changed files with 32809 additions and 0 deletions
26
internal/db/types.go
Normal file
26
internal/db/types.go
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
package db
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type InformationSource string
|
||||
|
||||
const (
|
||||
InformationSourceInferred InformationSource = "Inferred"
|
||||
InformationSourceMusicBrainz InformationSource = "MusicBrainz"
|
||||
InformationSourceUserProvided InformationSource = "User"
|
||||
)
|
||||
|
||||
type ListenActivityItem struct {
|
||||
Start time.Time `json:"start_time"`
|
||||
Listens int64 `json:"listens"`
|
||||
}
|
||||
|
||||
type PaginatedResponse[T any] struct {
|
||||
Items []T `json:"items"`
|
||||
TotalCount int64 `json:"total_record_count"`
|
||||
ItemsPerPage int32 `json:"items_per_page"`
|
||||
HasNextPage bool `json:"has_next_page"`
|
||||
CurrentPage int32 `json:"current_page"`
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue