mirror of
https://github.com/Theodor-Springmann-Stiftung/lenz-web.git
synced 2025-10-29 09:15:33 +00:00
Finsihed xml model & small bugfixes
This commit is contained in:
@@ -22,20 +22,40 @@ type PersonDefs struct {
|
||||
Persons []PersonDef `xml:"personDef"`
|
||||
}
|
||||
|
||||
func (p PersonDefs) Children() []PersonDef {
|
||||
return p.Persons
|
||||
}
|
||||
|
||||
type LocationDefs struct {
|
||||
Locations []LocationDef `xml:"locationDef"`
|
||||
}
|
||||
|
||||
func (l LocationDefs) Children() []LocationDef {
|
||||
return l.Locations
|
||||
}
|
||||
|
||||
type AppDefs struct {
|
||||
Apps []AppDef `xml:"appDef"`
|
||||
}
|
||||
|
||||
func (a AppDefs) Children() []AppDef {
|
||||
return a.Apps
|
||||
}
|
||||
|
||||
type TraditionsRoot struct {
|
||||
XMLName xml.Name `xml:"traditions"`
|
||||
Traditions []Tradition `xml:"tradition"`
|
||||
}
|
||||
|
||||
func (t TraditionsRoot) Children() []Tradition {
|
||||
return t.Traditions
|
||||
}
|
||||
|
||||
type DocumentsRoot struct {
|
||||
XMLName xml.Name `xml:"document"`
|
||||
Documents []Letter `xml:"letterText"`
|
||||
}
|
||||
|
||||
func (d DocumentsRoot) Children() []Letter {
|
||||
return d.Documents
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user