Add GetGenre endpoint
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package model
|
||||
|
||||
type Genre struct {
|
||||
Name string
|
||||
SongCount int
|
||||
AlbumCount int
|
||||
}
|
||||
|
||||
type Genres []Genre
|
||||
|
||||
type GenreRepository interface {
|
||||
GetAll() (Genres, error)
|
||||
}
|
||||
Reference in New Issue
Block a user