Implement annotations per user
This commit is contained in:
+1
-9
@@ -24,11 +24,6 @@ type MediaFile struct {
|
||||
BitRate int
|
||||
Genre string
|
||||
Compilation bool
|
||||
PlayCount int
|
||||
PlayDate time.Time
|
||||
Rating int
|
||||
Starred bool
|
||||
StarredAt time.Time
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
@@ -46,12 +41,9 @@ type MediaFileRepository interface {
|
||||
Get(id string) (*MediaFile, error)
|
||||
FindByAlbum(albumId string) (MediaFiles, error)
|
||||
FindByPath(path string) (MediaFiles, error)
|
||||
GetStarred(options ...QueryOptions) (MediaFiles, error)
|
||||
GetStarred(userId string, options ...QueryOptions) (MediaFiles, error)
|
||||
GetRandom(options ...QueryOptions) (MediaFiles, error)
|
||||
Search(q string, offset int, size int) (MediaFiles, error)
|
||||
Delete(id string) error
|
||||
DeleteByPath(path string) error
|
||||
SetStar(star bool, ids ...string) error
|
||||
SetRating(rating int, ids ...string) error
|
||||
MarkAsPlayed(id string, playTime time.Time) error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user