Supporting index annotations in domain structs

This commit is contained in:
Deluan
2016-03-14 09:41:04 -04:00
parent 11e128e08f
commit 14934dccf7
3 changed files with 117 additions and 26 deletions
+3 -3
View File
@@ -6,13 +6,13 @@ type Album struct {
Id string
Name string
ArtistId string `parent:"artist"`
CoverArtPath string // TODO http://stackoverflow.com/questions/13795842/linking-itunes-itc2-files-and-ituneslibrary-xml
CoverArtPath string
CoverArtId string
Artist string
AlbumArtist string
Year int
Year int `idx:"Year"`
Compilation bool
Starred bool
Starred bool `idx:"Starred"`
PlayCount int
PlayDate time.Time
Rating int