navidrome/model/playqueue.go

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
580 B
Go
Raw Normal View History

2020-07-31 17:42:51 +02:00
package model
import (
"time"
)
type PlayQueue struct {
ID string `json:"id" orm:"column(id)"`
UserID string `json:"userId" orm:"column(user_id)"`
Current string `json:"current"`
2020-07-31 21:32:08 +02:00
Position int64 `json:"position"`
2020-07-31 17:42:51 +02:00
ChangedBy string `json:"changedBy"`
Items MediaFiles `json:"items,omitempty"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
type PlayQueues []PlayQueue
type PlayQueueRepository interface {
Store(queue *PlayQueue) error
Retrieve(userId string) (*PlayQueue, error)
}