navidrome/model/genre.go

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

16 lines
361 B
Go
Raw Normal View History

2020-01-15 23:49:09 +01:00
package model
type Genre struct {
ID string `structs:"id" json:"id" orm:"column(id)"`
Name string `structs:"name" json:"name"`
SongCount int `structs:"-" json:"-"`
AlbumCount int `structs:"-" json:"-"`
2020-01-15 23:49:09 +01:00
}
type Genres []Genre
type GenreRepository interface {
2021-07-19 21:30:22 +02:00
GetAll(...QueryOptions) (Genres, error)
Put(*Genre) error
2020-01-15 23:49:09 +01:00
}