ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
[TOC] ## 列表 ~~~[api] get:/county *int:id=1#市id <<< success { "code": 0, "data": { "data": [ { "id": 1, "name": "青羊区",//区名 "city_id": 1//市id } ] } } <<< error { "code": -1, "msg": "参数错误!" } ~~~ ## 新增保存 ~~~[api] post:/county/save *int:city_id=1#市id *string:name=区名#区名 <<< success { "code": 0, "data": { "id": "2", "name": "江苏省", "province_id": 1 } } <<< error { "code": -1, "msg": "参数错误!" } ~~~ ## 修改查询 ~~~[api] get:/county/edit *int:id=1#列表 id <<< success { "code": 0, "data": { "data": { "id": 1, "city_id": 1, "name": "青羊区" } } } <<< error { "code": -1, "msg": "参数错误!" } ~~~ ## 修改保存 ~~~[api] post:/county/update *int:id=1#列表 id *int:city_id=1#市id *string:name=区名#区名 <<< success { "code": 0, "data": { "id": "2", "name": "江苏省", "city_id": 1 } } <<< error { "code": -1, "msg": "参数错误!" } ~~~ ## 删除 ~~~[api] post:/county/delete *int:id=1#列表 id <<< success { "code":0 } <<< error { "code": -1, "msg": "参数错误!" } ~~~