Add Genre filters to UI
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package model
|
||||
|
||||
type Genre struct {
|
||||
ID string `json:"id" orm:"column(id)"`
|
||||
Name string `json:"name"`
|
||||
SongCount int `json:"-"`
|
||||
AlbumCount int `json:"-"`
|
||||
}
|
||||
|
||||
type Genres []Genre
|
||||
|
||||
type GenreRepository interface {
|
||||
GetAll() (Genres, error)
|
||||
Put(m *Genre) error
|
||||
}
|
||||
Reference in New Issue
Block a user