mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-27 12:29:50 +01:00
Add GetGenre endpoint
This commit is contained in:
parent
ca2c897340
commit
36d93774bc
22 changed files with 302 additions and 25 deletions
13
model/genres.go
Normal file
13
model/genres.go
Normal 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)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue