Add json reflections to aboutme structs

This commit is contained in:
cyber-dream 2023-06-07 03:45:56 +03:00
parent 2ba61f10ff
commit 86552cb22f

View File

@ -283,26 +283,26 @@ func (p *AboutMeApp) Render(appCtx appCtx.AppContext, filePath string) (gin.H, e
}
type PropertiesFileData struct {
Header HeaderIsland `bson:"header"`
Islands []Island `bson:"islands"` //TODO rename
Header HeaderIsland `bson:"header" json:"header"`
Islands []Island `bson:"islands" json:"islands"` //TODO rename
}
type HeaderIsland struct {
Name string `bson:"name"`
IconPath string `bson:"iconpath"`
Value1 string `bson:"value1"` //TODO Rename to value
Value2 string `bson:"value2"`
Name string `bson:"name" json:"name"`
IconPath string `bson:"iconpath" json:"iconpath"`
Value1 string `bson:"value1" json:"value1"` //TODO Rename to value
Value2 string `bson:"value2" json:"value2"`
}
type Island struct {
Header string `bson:"header"`
Properties []IslandProperty `bson:"properties"`
Header string `bson:"header" json:"header"`
Properties []IslandProperty `bson:"properties" json:"properties"`
}
type IslandProperty struct {
Key string `bson:"key"`
KeyComments []string `bson:"keycomment"`
Values []string `bson:"values"`
Key string `bson:"key" json:"key"`
KeyComments []string `bson:"keycomment" json:"keycomment"`
Values []string `bson:"values" json:"values"`
}
type RenderedIsland struct {