mirror of
https://github.com/Theodor-Springmann-Stiftung/lenz-web.git
synced 2025-10-29 09:15:33 +00:00
Init
This commit is contained in:
19
xmlmodels/common.go
Normal file
19
xmlmodels/common.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package xmlmodels
|
||||
|
||||
import xmlparsing "github.com/Theodor-Springmann-Stiftung/lenz-web/xml"
|
||||
|
||||
type RefElement struct {
|
||||
Reference int `xml:"ref,attr"`
|
||||
Text string `xml:",chardata"`
|
||||
Cert string `xml:"cert,attr"`
|
||||
}
|
||||
|
||||
type Date struct {
|
||||
When xmlparsing.XSDDate `xml:"when,attr"`
|
||||
NotBefore xmlparsing.XSDDate `xml:"notBefore,attr"`
|
||||
NotAfter xmlparsing.XSDDate `xml:"notAfter,attr"`
|
||||
From xmlparsing.XSDDate `xml:"from,attr"`
|
||||
To xmlparsing.XSDDate `xml:"to,attr"`
|
||||
Cert string `xml:"cert,attr"`
|
||||
Text string `xml:",chardata"`
|
||||
}
|
||||
Reference in New Issue
Block a user