文档
测试

获取地区

POST
app/userAddr/getAddr

接口描述

获取省、市、县地区

请求参数

参数名
类型
描述
必填
code
string
地区代码
可选

响应参数

参数名
类型
描述
必填
message
string
示例:地区
必填
status
string
示例:success
必填
data
object
数据字典
必填
addrs
array
数据列表
必填
fatherCode
string
上级代码 示例:350000
必填
text
string
名称 示例:福州市
必填
code
string
代码 示例:350100
必填

说明 / 示例

```json { "message": "地区", "status": "success", "data": { "addrs": [{ "fatherCode": "350000", "text": "福州市", "code": "350100" }, { "fatherCode": "350000", "text": "厦门市", "code": "350200" }, { "fatherCode": "350000", "text": "莆田市", "code": "350300" }, { "fatherCode": "350000", "text": "三明市", "code": "350400" }, { "fatherCode": "350000", "text": "泉州市", "code": "350500" }, { "fatherCode": "350000", "text": "漳州市", "code": "350600" }, { "fatherCode": "350000", "text": "南平市", "code": "350700" }, { "fatherCode": "350000", "text": "龙岩市", "code": "350800" }, { "fatherCode": "350000", "text": "宁德市", "code": "350900" }] } }