mirror of
https://github.com/navidrome/navidrome.git
synced 2024-09-11 20:12:54 +02:00
16 lines
309 B
Go
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
|
|
}
|