From 69701a4ba15cc938bf1b232cbceb248e6e74217a Mon Sep 17 00:00:00 2001 From: Pichu Date: Fri, 1 Mar 2024 23:45:33 +0800 Subject: [PATCH] add field foe RoleDescription --- mig/main.go | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/mig/main.go b/mig/main.go index 7cdb636..ee2ea21 100644 --- a/mig/main.go +++ b/mig/main.go @@ -6,11 +6,15 @@ import ( ) type RoleDescription struct { - Identifier string `xml:"Identifier"` - Name string `xml:"Name"` - Address string `xml:"Address"` - PersonInCharge string `xml:"PersonInCharge"` - EmailAddress string `xml:"EmailAddress"` + Identifier string `xml:"Identifier"` + Name string `xml:"Name"` + Address string `xml:"Address,omitempty"` + PersonInCharge string `xml:"PersonInCharge,omitempty"` + TelephoneNumber string `xml:"TelephoneNumber,omitempty"` + FacsimileNumber string `xml:"FacsimileNumber,omitempty"` + EmailAddress string `xml:"EmailAddress,omitempty"` + CustomerNumber string `xml:"CustomerNumber,omitempty"` + RoleRemark string `xml:"RoleRemark,omitempty"` } type MigMain struct { @@ -73,5 +77,4 @@ func NewMigFile(b []byte) (*MigFile, error) { log.Println("xmlname", f.XMLName.Space, f.XMLName.Local) return &f, nil - }