Add genre tables, read multiple-genres from tags
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package model
|
||||
|
||||
type Genre struct {
|
||||
ID string `json:"id" orm:"column(id)"`
|
||||
Name string
|
||||
SongCount int
|
||||
AlbumCount int
|
||||
@@ -10,4 +11,5 @@ type Genres []Genre
|
||||
|
||||
type GenreRepository interface {
|
||||
GetAll() (Genres, error)
|
||||
Put(m *Genre) error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user