mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-13 02:37:18 +03:00
16 lines
416 B
Go
16 lines
416 B
Go
package model
|
|
|
|
type Genre struct {
|
|
ID string `structs:"id" json:"id,omitempty" toml:"id,omitempty" yaml:"id,omitempty"`
|
|
Name string `structs:"name" json:"name"`
|
|
SongCount int `structs:"-" json:"-" toml:"-" yaml:"-"`
|
|
AlbumCount int `structs:"-" json:"-" toml:"-" yaml:"-"`
|
|
}
|
|
|
|
type Genres []Genre
|
|
|
|
type GenreRepository interface {
|
|
GetAll(...QueryOptions) (Genres, error)
|
|
Put(*Genre) error
|
|
}
|