城市数据
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>获取某个省份的城市数据</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://xx.com/api/geograph/citys</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>GET </li>
</ul>
<h5>参数</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">code</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>省份代码</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>{
"error_code": 0,
"data": [
{
"id": "28241",
"code": "4401",
"parentid": "44",
"name": "广州市",
"level": "2"
},
{
"id": "28421",
"code": "4402",
"parentid": "44",
"name": "韶关市",
"level": "2"
},
{
"id": "28558",
"code": "4403",
"parentid": "44",
"name": "深圳市",
"level": "2"
},
....
]
}</code></pre>
<h5>返回参数说明</h5>
<p>无</p>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>