💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
## 获取地区 ~~~[api] get:index/Login/getCity <<< success { "code": 1, "msg": "获取成功", "data": [ { "id": 1, "name": "广东", "city": [ { "id": 1, "name": "韶关", "province_id": 1, "district": [ { "id": 1, "name": "浈江区", "city_id": 1 }, { "id": 2, "name": "南雄市", "city_id": 1 } ] }, { "id": 2, "name": "深圳", "province_id": 1, "district": [] }, { "id": 5, "name": "汕头市", "province_id": 1, "district": [] } ] }, { "id": 2, "name": "上海市", "city": [ { "id": 4, "name": "黄浦区", "province_id": 2, "district": [] } ] }, { "id": 3, "name": "江苏", "city": [ { "id": 3, "name": "苏州", "province_id": 3, "district": [ { "id": 3, "name": "test", "city_id": 3 } ] } ] } ] } <<< error { code:0 msg:"获取失败" } ~~~ ### 返回字段说明 | 字段 | 说明 | | --- | --- | | id | 省(直辖市)的ID | | name | 省(直辖市)名 | | city | 省对应的城市 | | city-id | 城市id | | city-name | 城市名字 | | city-province_id | 省关联的id | | district | 市对应的区(县) | | district -id | 区(县)id | | district -name | 区(县)名字 | | district -city_id | 市关联的id |