Add genre tables, read multiple-genres from tags

This commit is contained in:
Deluan
2021-07-15 19:53:40 -04:00
committed by Deluan Quintão
parent 1f0314021e
commit 7cd3a8ba67
13 changed files with 205 additions and 53 deletions
+2
View File
@@ -1,6 +1,7 @@
package model
type Genre struct {
ID string `json:"id" orm:"column(id)"`
Name string
SongCount int
AlbumCount int
@@ -10,4 +11,5 @@ type Genres []Genre
type GenreRepository interface {
GetAll() (Genres, error)
Put(m *Genre) error
}