More slices instead of pointers of slice
This commit is contained in:
+2
-2
@@ -27,9 +27,9 @@ type AlbumRepository interface {
|
||||
BaseRepository
|
||||
Put(m *Album) error
|
||||
Get(id string) (*Album, error)
|
||||
FindByArtist(artistId string) (*Albums, error)
|
||||
FindByArtist(artistId string) (Albums, error)
|
||||
GetAll(QueryOptions) (Albums, error)
|
||||
PurgeInactive(active Albums) ([]string, error)
|
||||
GetAllIds() ([]string, error)
|
||||
GetStarred(QueryOptions) (*Albums, error)
|
||||
GetStarred(QueryOptions) (Albums, error)
|
||||
}
|
||||
|
||||
+1
-1
@@ -47,6 +47,6 @@ type MediaFileRepository interface {
|
||||
BaseRepository
|
||||
Put(m *MediaFile) error
|
||||
Get(id string) (*MediaFile, error)
|
||||
FindByAlbum(albumId string) (*MediaFiles, error)
|
||||
FindByAlbum(albumId string) (MediaFiles, error)
|
||||
PurgeInactive(active MediaFiles) ([]string, error)
|
||||
}
|
||||
|
||||
@@ -9,5 +9,5 @@ type MediaFolder struct {
|
||||
type MediaFolders []MediaFolder
|
||||
|
||||
type MediaFolderRepository interface {
|
||||
GetAll() (*MediaFolders, error)
|
||||
GetAll() (MediaFolders, error)
|
||||
}
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ type PlaylistRepository interface {
|
||||
BaseRepository
|
||||
Put(m *Playlist) error
|
||||
Get(id string) (*Playlist, error)
|
||||
GetAll(options QueryOptions) (*Playlists, error)
|
||||
GetAll(options QueryOptions) (Playlists, error)
|
||||
PurgeInactive(active Playlists) ([]string, error)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user