navidrome/model/genre.go

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

16 lines
296 B
Go
Raw Normal View History

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