Omit empty Genre attributes

This commit is contained in:
Deluan 2023-12-27 12:44:25 -05:00
parent 798b03eabd
commit a186a795f6
1 changed files with 3 additions and 3 deletions

View File

@ -1,10 +1,10 @@
package model
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"`
SongCount int `structs:"-" json:"-"`
AlbumCount int `structs:"-" json:"-"`
SongCount int `structs:"-" json:"-" toml:"-" yaml:"-"`
AlbumCount int `structs:"-" json:"-" toml:"-" yaml:"-"`
}
type Genres []Genre