feat: initial implementation of album lists

This commit is contained in:
Deluan
2020-03-28 23:25:49 -04:00
parent fec8b5f731
commit 46f4f63212
5 changed files with 105 additions and 20 deletions
+1
View File
@@ -24,6 +24,7 @@ func NewAlbumRepository(ctx context.Context, o orm.Ormer) model.AlbumRepository
r.tableName = "album"
r.sortMappings = map[string]string{
"artist": "compilation asc, album_artist asc, name asc",
"random": "RANDOM()",
}
r.filterMappings = map[string]filterFunc{
"name": fullTextFilter,