Add GetGenre endpoint

This commit is contained in:
Deluan 2020-01-15 17:49:09 -05:00
commit 36d93774bc
22 changed files with 302 additions and 25 deletions

13
model/genres.go Normal file
View file

@ -0,0 +1,13 @@
package model
type Genre struct {
Name string
SongCount int
AlbumCount int
}
type Genres []Genre
type GenreRepository interface {
GetAll() (Genres, error)
}