Add json reflections to aboutme structs
This commit is contained in:
parent
2ba61f10ff
commit
86552cb22f
@ -283,26 +283,26 @@ func (p *AboutMeApp) Render(appCtx appCtx.AppContext, filePath string) (gin.H, e
|
|||||||
}
|
}
|
||||||
|
|
||||||
type PropertiesFileData struct {
|
type PropertiesFileData struct {
|
||||||
Header HeaderIsland `bson:"header"`
|
Header HeaderIsland `bson:"header" json:"header"`
|
||||||
Islands []Island `bson:"islands"` //TODO rename
|
Islands []Island `bson:"islands" json:"islands"` //TODO rename
|
||||||
}
|
}
|
||||||
|
|
||||||
type HeaderIsland struct {
|
type HeaderIsland struct {
|
||||||
Name string `bson:"name"`
|
Name string `bson:"name" json:"name"`
|
||||||
IconPath string `bson:"iconpath"`
|
IconPath string `bson:"iconpath" json:"iconpath"`
|
||||||
Value1 string `bson:"value1"` //TODO Rename to value
|
Value1 string `bson:"value1" json:"value1"` //TODO Rename to value
|
||||||
Value2 string `bson:"value2"`
|
Value2 string `bson:"value2" json:"value2"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Island struct {
|
type Island struct {
|
||||||
Header string `bson:"header"`
|
Header string `bson:"header" json:"header"`
|
||||||
Properties []IslandProperty `bson:"properties"`
|
Properties []IslandProperty `bson:"properties" json:"properties"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type IslandProperty struct {
|
type IslandProperty struct {
|
||||||
Key string `bson:"key"`
|
Key string `bson:"key" json:"key"`
|
||||||
KeyComments []string `bson:"keycomment"`
|
KeyComments []string `bson:"keycomment" json:"keycomment"`
|
||||||
Values []string `bson:"values"`
|
Values []string `bson:"values" json:"values"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type RenderedIsland struct {
|
type RenderedIsland struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user