ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
[TOC] ## 小区列表 ~~~[api] get:/community <<< success { "code": 0, "data": { "data": [ { "id": 1, "name": "",//小区名 "source": 0,//小区来源 0 管理添加 1销售人员添加 "create_time": "",//添加时间 "landmark": "",//小区地标 "county": "",//区 "city": "",//市 "province": ""//省 } ], "currentPage": 1,//当前页 "pageNumber": 10,//页码 "count": 1//总条数 } } <<< error ~~~ ## 小区分页 ~~~[api] get:/community/pag *int:currentPage=1#当前页 *int:pageNumber=10#页码 <<< success { "code": 0, "data": { "data": [ { "id": 1, "name": "", "source": 0, "create_time": "", "landmark": "", "county": "", "city": "", "province": "" } ] } } <<< error { "code": -1, "msg": "参数错误!" } ~~~ ## 小区搜索 ~~~[api] get:/community/search *string:search=搜索内容#搜索内容 <<< success { "code": 0, "data": { "data": [ { "id": 1, "name": "", "source": 0, "create_time": "", "landmark": "", "county": "", "city": "", "province": "" } ] } } <<< error { "code": -1, "msg": "参数错误!" } ~~~ ## 小区新增查询(查询所有地标) ~~~[api] get:/community/read <<< success { "code": 0, "data": [ { "id": 1, "name": ""//地标名 } ] } <<< error ~~~ ## 小区新增保存 ~~~[api] post:/community/save *string:name=名字#小区名 *int:county_id=1#区 id *int:landmark_id=1#地标 id *string:address=详细地址 *string:longitude=22.22#所在经度 *string:latitude=33.22#所在纬度 <<< success { "code": 0 } <<< error { "code": -1, "msg": "参数错误!" } ~~~ ## 小区修改查询 ~~~[api] get:/community/edit *int:id=1#列表的 id <<< success { "code": 0, "data": { "data": { "id": 1, "name": "",//小区名 "address": "",//小区地址 "longitude": "",//经度 "latitude": "",//纬度 "landmark_id": 1,//地标id "landmark": "",//地标名 "county_id": 1,//区id "county": "",//区名 "city_id": 1,//市id "city": "",//市名 "province_id": 1,//省id "province": ""//省名 } } } <<< error { "code": -1, "msg": "参数错误!" } ~~~ ## 小区修改保存 ~~~[api] post:/community/update *int:id=1#列表的 id *string:name=名字#小区名 *int:county_id=1#区 id *int:landmark_id=1#地标 id *string:address=详细地址 *string:longitude=22.22#所在经度 *string:latitude=33.22#所在纬度 <<< success { "code": 0 } <<< error { "code": -1, "msg": "参数错误!" } ~~~ ## 删除小区 ~~~[api] post:/community/delete *int:id=1#列表的 id <<< success { "code": 0 } <<< error { "code": -1, "msg": "参数错误!" } ~~~