Add genre tables, read multiple-genres from tags

This commit is contained in:
Deluan authored and Deluan Quintão committed 2021-07-20 17:45:08 -04:00
1 parent 1f0314021e
commit 7cd3a8ba67
13 files changed
+205 -53

No files matched your search

+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
}