navidrome/model/genre.go
2021-07-20 17:45:08 -04:00

16 lines
309 B
Go

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(...QueryOptions) (Genres, error)
Put(*Genre) error
}