Omit empty Genre attributes
This commit is contained in:
+3
-3
@@ -1,10 +1,10 @@
|
|||||||
package model
|
package model
|
||||||
|
|
||||||
type Genre struct {
|
type Genre struct {
|
||||||
ID string `structs:"id" json:"id"`
|
ID string `structs:"id" json:"id,omitempty" toml:"id,omitempty" yaml:"id,omitempty"`
|
||||||
Name string `structs:"name" json:"name"`
|
Name string `structs:"name" json:"name"`
|
||||||
SongCount int `structs:"-" json:"-"`
|
SongCount int `structs:"-" json:"-" toml:"-" yaml:"-"`
|
||||||
AlbumCount int `structs:"-" json:"-"`
|
AlbumCount int `structs:"-" json:"-" toml:"-" yaml:"-"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Genres []Genre
|
type Genres []Genre
|
||||||
|
|||||||
Reference in New Issue
Block a user