This commit is contained in:
Simon Martens
2025-03-05 16:41:39 +01:00
commit e19fd47c17
88 changed files with 9765 additions and 0 deletions

23
xmlmodels/meta.go Normal file
View File

@@ -0,0 +1,23 @@
package xmlmodels
import (
"encoding/xml"
xmlparsing "github.com/Theodor-Springmann-Stiftung/lenz-web/xml"
)
type Meta struct {
XMLName xml.Name `xml:"letterDesc"`
Letter int `xml:"letter,attr"`
HasOriginal xmlparsing.OptionalBool `xml:"hasOriginal"`
IsProofread xmlparsing.OptionalBool `xml:"isProofread"`
IsDraft xmlparsing.OptionalBool `xml:"isDraft"`
Sent []Action `xml:"sent"`
Recieved []Action `xml:"recieved"`
}
type Action struct {
Dates []Date `xml:"date,attr"`
Places []RefElement `xml:"place"`
Persons []RefElement `xml:"person"`
}