[TOC=2]
## 小區列表
~~~[api]
get:/community/list
int:current_page=1#當前頁
int:page_number=10#頁碼
<<<
success
{
"code": 0,
"data": {
"list": [
{
"id": 1,
"title": "1123",//小區名
"county_id": 123,//所在區域id
"name": "123",//負責人姓名
"phone": "13666564655",//負責人手機號
"status": true,//是否啟用 true 啟用 false 禁用
"create_time": "2018-04-12 12:28:53"//添加時間
}
],
"current_page": 1,
"page_number": 10,
"total": 1
}
}
~~~
## 新增修改
~~~[api]
post:/community/saveData
int:id=1#id
*string:title=小區名#小區名
*string:name=姓名#負責人姓名
*string:phone=15181474781#負責人手機號
*string:county_id=1321#所在區域id
<<<
success
{
"code": 0,
"data": {
"name": "",//小區負責人姓名
"title": "",//小區名
"county_id": "123",//所在區域id
"phone": "13666564655",//負責人手機號
"id": 1
}
}
<<<
error
{
"code": -1,
"msg": "手機號11位"
}
~~~
## 修改查詢
~~~[api]
get:/community/edit
*int:id=0#id
<<<
success
{
"code": 0,
"data": {
"id": 1,
"title": "",//小區名
"county_id": 123,//所在區域id
"name": "123",//負責人姓名
"phone": "13666564655",//負責人手機號
"status": true,//是否啟用 true 啟用 false 禁用
"create_time": "2018-04-12 12:28:53"//添加時間
}
}
<<<
success
//查詢項不存在
{
"code": 0
}
~~~
## 小區搜索
~~~[api]
get:/community/search
*string:search=""#小區名
<<<
success
{
"code": 0,
"data": {
"list": [
{
"id": 2,
"title": "",//小區名
"county_id": 123,//所在區域id
"name": "",//小區負責人姓名
"phone": "",//小區負責人手機號
"status": true,//是否啟用 true 啟用 false 凍結
"create_time": "2018-04-12 14:05:47"//創建時間
}
]
}
}
<<<
success
//搜索內容不存在
{
"code": 0,
"data": {
"list": []
}
}
~~~
## 小區刪除
~~~[api]
post:/community/delete
*int:id=0#id
<<<
success
{
"code": 0,
"data": {
"id": 0
}
}
~~~