@apis1990
2016-08-24T03:43:02.000000Z
字数 1174
阅读 686
主页
测试地址:http://36.33.24.119:8081/api/get_cities.php
| 参数 | 类型 | 是否必须 | 描述 |
|---|
表单数据:
| 参数 | 类型 | 描述 |
|---|---|---|
| code | int | 状态码:200 --- 成功 其它 --- 异常 |
| all | 所有城市 | |
| part | 可预约城市 | |
| cityid | 城市id,接口请求传参用 | |
| city | 城市名,app显示用 |
如果定位的城市不再part字段中,搜索教练列表默认传合 肥
{
"id": "101",
"cityid": "340100",
"city": "合肥市",
"fatherid": "340000"
},
{"code": 200,"data": {"all": [{"id": "1","cityid": "110100","city": "北京市","fatherid": "110000"},{"id": "3","cityid": "120100","city": "天津市","fatherid": "120000"},...{"id": "345","cityid": "659000","city": "省直辖行政单位","fatherid": "650000"}],"part": [{"id": "1","cityid": "110100","city": "北京市","fatherid": "110000"},{"id": "3","cityid": "120100","city": "天津市","fatherid": "120000"},{"id": "16","cityid": "140100","city": "太原市","fatherid": "140000"},{"id": "75","cityid": "310100","city": "上海市","fatherid": "310000"},{"id": "90","cityid": "330100","city": "杭州市","fatherid": "330000"},{"id": "101","cityid": "340100","city": "合肥市","fatherid": "340000"},{"id": "172","cityid": "420100","city": "武汉市","fatherid": "420000"},{"id": "173","cityid": "420200","city": "黄石市","fatherid": "420000"},{"id": "176","cityid": "420600","city": "襄樊市","fatherid": "420000"},{"id": "181","cityid": "421100","city": "黄冈市","fatherid": "420000"}]}}
