[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": "参数错误!"
}
```