Remove unnecessary repositories methods
This commit is contained in:
@@ -48,6 +48,13 @@ func AlbumsByGenre(genre string) Options {
|
||||
}
|
||||
}
|
||||
|
||||
func AlbumsByArtistID(artistId string) Options {
|
||||
return Options{
|
||||
Sort: "max_year",
|
||||
Filters: squirrel.Eq{"album_artist_id": artistId},
|
||||
}
|
||||
}
|
||||
|
||||
func AlbumsByYear(fromYear, toYear int) Options {
|
||||
sortOption := "max_year, name"
|
||||
if fromYear > toYear {
|
||||
@@ -76,6 +83,13 @@ func SongsByGenre(genre string) Options {
|
||||
}
|
||||
}
|
||||
|
||||
func SongsByAlbum(albumId string) Options {
|
||||
return Options{
|
||||
Filters: squirrel.Eq{"album_id": albumId},
|
||||
Sort: "album",
|
||||
}
|
||||
}
|
||||
|
||||
func SongsByRandom(genre string, fromYear, toYear int) Options {
|
||||
options := Options{
|
||||
Sort: "random()",
|
||||
|
||||
Reference in New Issue
Block a user