mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-01 19:47:37 +03:00
24 lines
688 B
Go
24 lines
688 B
Go
package model
|
|
|
|
import "time"
|
|
|
|
type Bookmarkable struct {
|
|
BookmarkPosition int64 `structs:"-" json:"bookmarkPosition"`
|
|
}
|
|
|
|
type BookmarkableRepository interface {
|
|
AddBookmark(id, comment string, position int64) error
|
|
DeleteBookmark(id string) error
|
|
GetBookmarks() (Bookmarks, error)
|
|
}
|
|
|
|
type Bookmark struct {
|
|
Item MediaFile `structs:"item" json:"item"`
|
|
Comment string `structs:"comment" json:"comment"`
|
|
Position int64 `structs:"position" json:"position"`
|
|
ChangedBy string `structs:"changed_by" json:"changed_by"`
|
|
CreatedAt time.Time `structs:"created_at" json:"createdAt"`
|
|
UpdatedAt time.Time `structs:"updated_at" json:"updatedAt"`
|
|
}
|
|
|
|
type Bookmarks []Bookmark
|