mirror of
https://github.com/navidrome/navidrome.git
synced 2024-09-11 20:12:54 +02:00
24 lines
580 B
Go
24 lines
580 B
Go
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"`
|
|
Position int64 `json:"position"`
|
|
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)
|
|
}
|