mirror of https://github.com/gabehf/Koito.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
623 B
27 lines
623 B
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"`
|
|
}
|