获取-城市列表
GET
/cityList获取-城市列表
请求参数
Query 参数
proId
string
省份id
示例值:
210000
示例代码
返回响应
成功(200)
参数错误(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
msg
string
响应消息
code
integer
业务状态码
200成功, 其他失败
list
array [object {4}]
响应数据
城市列表
id
integer
数据id
cityId
string
城市id
cityName
string
城市名字
proId
string
城市所属省份id
示例成功示例
{
"msg": "市名的数据, 获取成功",
"code": 200,
"list": [
{
"id": 39,
"cityId": "210100",
"cityName": "沈阳市",
"proId": "210000"
},
{
"id": 40,
"cityId": "210200",
"cityName": "大连市",
"proId": "210000"
},
{
"id": 41,
"cityId": "210300",
"cityName": "鞍山市",
"proId": "210000"
},
{
"id": 42,
"cityId": "210400",
"cityName": "抚顺市",
"proId": "210000"
},
{
"id": 43,
"cityId": "210500",
"cityName": "本溪市",
"proId": "210000"
},
{
"id": 44,
"cityId": "210600",
"cityName": "丹东市",
"proId": "210000"
},
{
"id": 45,
"cityId": "210700",
"cityName": "锦州市",
"proId": "210000"
},
{
"id": 46,
"cityId": "210800",
"cityName": "营口市",
"proId": "210000"
},
{
"id": 47,
"cityId": "210900",
"cityName": "阜新市",
"proId": "210000"
},
{
"id": 48,
"cityId": "211000",
"cityName": "辽阳市",
"proId": "210000"
},
{
"id": 49,
"cityId": "211100",
"cityName": "盘锦市",
"proId": "210000"
},
{
"id": 50,
"cityId": "211200",
"cityName": "铁岭市",
"proId": "210000"
},
{
"id": 51,
"cityId": "211300",
"cityName": "朝阳市",
"proId": "210000"
},
{
"id": 52,
"cityId": "211400",
"cityName": "葫芦岛市",
"proId": "210000"
}
]
}
最后修改时间: 1 年前