2020-01-15 13:49:09 -09:00
|
|
|
package model
|
|
|
|
|
|
|
|
|
|
type Genre struct {
|
2021-07-15 15:53:40 -08:00
|
|
|
ID string `json:"id" orm:"column(id)"`
|
2021-07-16 15:41:49 -08:00
|
|
|
Name string `json:"name"`
|
|
|
|
|
SongCount int `json:"-"`
|
|
|
|
|
AlbumCount int `json:"-"`
|
2020-01-15 13:49:09 -09:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type Genres []Genre
|
|
|
|
|
|
|
|
|
|
type GenreRepository interface {
|
2021-07-19 11:30:22 -08:00
|
|
|
GetAll(...QueryOptions) (Genres, error)
|
|
|
|
|
Put(*Genre) error
|
2020-01-15 13:49:09 -09:00
|
|
|
}
|