This commit is contained in:
yuguojian
2025-05-14 18:18:34 +08:00
parent af1abd701e
commit 225efe116d
2 changed files with 155 additions and 18 deletions

View File

@@ -104,18 +104,24 @@ type Regeocode struct {
}
type AddressComponent struct {
BusinessAreas [][]interface{} `json:"businessAreas"`
Country string `json:"country"`
Province string `json:"province"`
Citycode string `json:"citycode"`
City string `json:"city"`
Adcode string `json:"adcode"`
StreetNumber StreetNumber `json:"streetNumber"`
Towncode string `json:"towncode"`
District string `json:"district"`
Neighborhood Neighborhood `json:"neighborhood"`
Township string `json:"township"`
Building Building `json:"building"`
// BusinessAreas []interface{} `json:"businessAreas"`
Country string `json:"country"`
Province string `json:"province"`
Citycode string `json:"citycode"`
City string `json:"city"`
Adcode string `json:"adcode"`
StreetNumber StreetNumber `json:"streetNumber"`
Towncode string `json:"towncode"`
District string `json:"district"`
// Neighborhood Neighborhood `json:"neighborhood"`
Township string `json:"township"`
// Building Building `json:"building"`
}
type BusinessArea struct {
Name string `json:"name"`
Location string `json:"location"`
Id string `json:"id"`
}
type StreetNumber struct {
Number string `json:"number"`
@@ -126,11 +132,11 @@ type StreetNumber struct {
}
type Neighborhood struct {
Name []interface{} `json:"name"`
Type []interface{} `json:"type"`
Name interface{} `json:"name"`
Type interface{} `json:"type"`
}
type Building struct {
Name []interface{} `json:"name"`
Type []interface{} `json:"type"`
Name interface{} `json:"name"`
Type interface{} `json:"type"`
}