2020-01-21 19:01:43 -09:00
|
|
|
package model
|
|
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
2020-05-22 11:23:42 -08:00
|
|
|
type Annotations struct {
|
2023-12-09 09:52:17 -09:00
|
|
|
PlayCount int64 `structs:"-" json:"playCount"`
|
|
|
|
|
PlayDate *time.Time `structs:"-" json:"playDate" `
|
|
|
|
|
Rating int `structs:"-" json:"rating" `
|
|
|
|
|
Starred bool `structs:"-" json:"starred" `
|
|
|
|
|
StarredAt *time.Time `structs:"-" json:"starredAt"`
|
2020-05-22 11:23:42 -08:00
|
|
|
}
|
|
|
|
|
|
2020-01-31 17:09:23 -09:00
|
|
|
type AnnotatedRepository interface {
|
|
|
|
|
IncPlayCount(itemID string, ts time.Time) error
|
|
|
|
|
SetStar(starred bool, itemIDs ...string) error
|
|
|
|
|
SetRating(rating int, itemID string) error
|
2020-01-21 19:01:43 -09:00
|
|
|
}
|