[TOC]
## 小區列表
* 請求地址: `/community`
* 請求方式: get
* 請求參數: 無
* 成功返回:
```json
{
"code": 0,
"data": {
"data": [
{
"id": 1,
"name": "",//小區名
"source": 0,//小區來源 0 管理添加 1銷售人員添加
"create_time": "",//添加時間
"landmark": "",//小區地標
"county": "",//區
"city": "",//市
"province": ""//省
}
],
"currentPage": 1,//當前頁
"pageNumber": 10,//頁碼
"count": 1//總條數
}
}
```
* 失敗返回: 其他錯誤信息
## 小區分頁
* 請求地址: `/community/pag`
* 請求方式: get
* 請求參數:
| 字段名 | 字段類型 | 字段長度 | 必填 | 字段說明 |
| --- | --- | --- | --- | --- |
| `currentPage` | int | 11 | `是` | 當前頁 |
| `pageNumber` | int | 11 | `是` | 頁碼 |
* 成功返回:
```json
{
"code": 0,
"data": {
"data": [
{
"id": 1,
"name": "",
"source": 0,
"create_time": "",
"landmark": "",
"county": "",
"city": "",
"province": ""
}
]
}
}
```
* 失敗返回:
```json
{
"code": -1,
"msg": "參數錯誤!"
}
```
## 小區搜索
* 請求地址: `/community/search`
* 請求方式: get
* 請求參數:
| 字段名 | 字段類型 | 字段長度 | 必填 | 字段說明 |
| --- | --- | --- | --- | --- |
| `search` | string | 2-200 | `是` | 搜索內容(小區名) |
* 成功返回:
```json
{
"code": 0,
"data": {
"data": [
{
"id": 1,
"name": "",
"source": 0,
"create_time": "",
"landmark": "",
"county": "",
"city": "",
"province": ""
}
]
}
}
```
* 失敗返回:
```json
{
"code": -1,
"msg": "參數錯誤!"
}
```