navidrome/model/genre.go

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
397 B
Go
Raw Permalink Normal View History

2020-01-15 17:49:09 -05:00
package model
type Genre struct {
2023-12-27 12:44:25 -05:00
ID string `structs:"id" json:"id,omitempty" toml:"id,omitempty" yaml:"id,omitempty"`
Name string `structs:"name" json:"name"`
2023-12-27 12:44:25 -05:00
SongCount int `structs:"-" json:"-" toml:"-" yaml:"-"`
AlbumCount int `structs:"-" json:"-" toml:"-" yaml:"-"`
2020-01-15 17:49:09 -05:00
}
type Genres []Genre
type GenreRepository interface {
2021-07-19 15:30:22 -04:00
GetAll(...QueryOptions) (Genres, error)
2020-01-15 17:49:09 -05:00
}