Ver código fonte

添加丢失字段

zhangjq 6 anos atrás
pai
commit
a158d67fad
1 arquivos alterados com 4 adições e 1 exclusões
  1. 4 1
      client/struct.go

+ 4 - 1
client/struct.go

@@ -19,17 +19,20 @@ type XmlControllers struct {
 }
 
 type XmlController struct {
-	XMLName xml.Name `xml:"controller"`
 	Name string `xml:"name,attr"`
 	Desc         string `xml:"desc,attr"`
+	SkipLogin    bool `xml:"skip_login,attr"`
 	Apis []XmlApi `xml:"api"`
 	ApplicationName string `xml:"-"`
+	PackageName string `xml:"-"`
 }
 
 type XmlApi struct {
 	Name string `xml:"name,attr"`
 	Desc string `xml:"desc,attr"`
 	Method string `xml:"method,attr"`
+	Function string `xml:"function,attr"`//page,tree
+	Table string `xml:"table,attr"`
 	ParamList []XmlApiParam `xml:"param"`
 	Return XmlReturn `xml:"return"`
 }