mirror of
https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
synced 2025-10-29 00:55:32 +00:00
restructured viewmodels, better serialization
This commit is contained in:
49
providers/xmlprovider/xmlrefs.go
Normal file
49
providers/xmlprovider/xmlrefs.go
Normal file
@@ -0,0 +1,49 @@
|
||||
package xmlprovider
|
||||
|
||||
import "encoding/xml"
|
||||
|
||||
type AgentRef struct {
|
||||
XMLName xml.Name `xml:"akteur"`
|
||||
Reference
|
||||
}
|
||||
|
||||
type AdditionalRef struct {
|
||||
XMLName xml.Name `xml:"beilage"`
|
||||
Reference
|
||||
Datum string `xml:"datum,attr"`
|
||||
Nr string `xml:"nr,attr"`
|
||||
AdditionalNo string `xml:"beilage,attr"`
|
||||
Von string `xml:"von,attr"`
|
||||
Bis string `xml:"bis,attr"`
|
||||
}
|
||||
|
||||
type IssueRef struct {
|
||||
XMLName xml.Name `xml:"stueck"`
|
||||
Reference
|
||||
Datum string `xml:"datum,attr"`
|
||||
Nr string `xml:"nr,attr"`
|
||||
Von string `xml:"von,attr"`
|
||||
Bis string `xml:"bis,attr"`
|
||||
}
|
||||
|
||||
type PlaceRef struct {
|
||||
XMLName xml.Name `xml:"ort"`
|
||||
Reference
|
||||
}
|
||||
|
||||
type CategoryRef struct {
|
||||
XMLName xml.Name `xml:"kategorie"`
|
||||
Reference
|
||||
}
|
||||
|
||||
type WorkRef struct {
|
||||
XMLName xml.Name `xml:"werk"`
|
||||
Reference
|
||||
Page string `xml:"s,attr"`
|
||||
}
|
||||
|
||||
type PieceRef struct {
|
||||
XMLName xml.Name `xml:"beitrag"`
|
||||
Page string `xml:"s,attr"`
|
||||
Reference
|
||||
}
|
||||
Reference in New Issue
Block a user