2020-01-22 05:01:43 +01:00
|
|
|
package model
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
2020-05-22 21:23:42 +02:00
|
|
|
type Annotations struct {
|
2021-08-01 07:21:20 +02: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 21:23:42 +02:00
|
|
|
}
|
|
|
|
|
2020-02-01 03:09:23 +01: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-22 05:01:43 +01:00
|
|
|
}
|