|
@@ -1,6 +1,11 @@
|
|
|
package client
|
|
package client
|
|
|
|
|
|
|
|
|
|
+import(
|
|
|
|
|
+ "encoding/xml"
|
|
|
|
|
+)
|
|
|
|
|
+
|
|
|
type XmlApplication struct {
|
|
type XmlApplication struct {
|
|
|
|
|
+ XMLName xml.Name `xml:"application"`
|
|
|
ApplicationName string `xml:"name,attr"`
|
|
ApplicationName string `xml:"name,attr"`
|
|
|
PackageName string `xml:"packagename,attr"`
|
|
PackageName string `xml:"packagename,attr"`
|
|
|
Desc string `xml:"desc,attr"`
|
|
Desc string `xml:"desc,attr"`
|
|
@@ -14,6 +19,7 @@ type XmlControllers struct {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
type XmlController struct {
|
|
type XmlController struct {
|
|
|
|
|
+ XMLName xml.Name `xml:"controller"`
|
|
|
Name string `xml:"name,attr"`
|
|
Name string `xml:"name,attr"`
|
|
|
Desc string `xml:"desc,attr"`
|
|
Desc string `xml:"desc,attr"`
|
|
|
Apis []XmlApi `xml:"api"`
|
|
Apis []XmlApi `xml:"api"`
|
|
@@ -59,9 +65,10 @@ type XmlTables struct {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
type XmlTable struct {
|
|
type XmlTable struct {
|
|
|
|
|
+ XMLName xml.Name `xml:"table"`
|
|
|
Name string `xml:"name,attr"`
|
|
Name string `xml:"name,attr"`
|
|
|
Desc string `xml:"desc,attr"`
|
|
Desc string `xml:"desc,attr"`
|
|
|
- ImportDateTime bool
|
|
|
|
|
|
|
+ ImportDateTime bool `xml:"-"`
|
|
|
ColumnList []XmlColumn `xml:"column"`
|
|
ColumnList []XmlColumn `xml:"column"`
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -82,10 +89,11 @@ type XmlBeans struct {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
type XmlBean struct {
|
|
type XmlBean struct {
|
|
|
|
|
+ XMLName xml.Name `xml:"bean"`
|
|
|
Name string `xml:"name,attr"`
|
|
Name string `xml:"name,attr"`
|
|
|
Desc string `xml:"desc,attr"`
|
|
Desc string `xml:"desc,attr"`
|
|
|
Inher string `xml:"inher,attr"`
|
|
Inher string `xml:"inher,attr"`
|
|
|
- ImportDateTime bool
|
|
|
|
|
|
|
+ ImportDateTime bool `xml:"-"`
|
|
|
PropList []XmlProp `xml:"prop"`
|
|
PropList []XmlProp `xml:"prop"`
|
|
|
}
|
|
}
|
|
|
|
|
|