文档
测试

获取小区列表

GET
https://zpapi.zp365.com/api/community/GetCommunityList?WebsiteID={WebsiteID}&PageIndex={PageIndex}&PageSize={PageSize}&kw={kw}&ty={ty}&area={area}&byRange={byRange}&priceRange={priceRange}&pSort={pSort}&ySort={ySort}

接口描述

获取小区列表

请求参数

参数名
类型
描述
必填
WebsiteID
integer
站点ID
必填
PageIndex
integer
页索引
必填
PageSize
integer
页大小
必填
kw
string
搜索关键字
必填
ty
integer
类型 对应住朋帮数据库表[House_Type]
必填
area
string
区域ID路径
必填
byRange
string
建筑年份
必填
priceRange
string
价格区间
必填
pSort
integer
价格排序(0-默认,1为升序,2为降序)
必填
ySort
integer
建筑年限排序(0-默认,1为升序,2为降序)
必填

响应参数

参数名
类型
描述
必填
Success
boolean
返回成功
必填
ret
integer
0正常返回 1参数错误 2鉴权失败 3内部错误 4其它错误 5没有记录 6分页数据没有记录了
必填
Result
string
返回消息
必填
Content
PagingDTOOfEsf_CommunityForListDTO
内容包
必填

返回格式

``` { "Success": true, "ret": 2, "Result": "sample string 3", "Content": { "PageIndex": 1, "totalCount": 2, "totalPage": 3, "modelList": [ { "CommunityID": 1, "CM_BuildingYear": 1, "CM_Address": "sample string 2", "CM_Name": "sample string 3", "saleSum": 4, "rentSum": 5, "CM_Price": 6.0, "CM_PriceWave": 7.0, "CM_ImgUrl": "sample string 8", "v": 9, "IsRecommend": true, "Sort": 1, "BigImgPath": "sample string 10", "UpdateDate": "2020-03-10T14:36:22.012729+08:00", "CM_Type": "sample string 12", "MaxPrice": 1.0 }, { "CommunityID": 1, "CM_BuildingYear": 1, "CM_Address": "sample string 2", "CM_Name": "sample string 3", "saleSum": 4, "rentSum": 5, "CM_Price": 6.0, "CM_PriceWave": 7.0, "CM_ImgUrl": "sample string 8", "v": 9, "IsRecommend": true, "Sort": 1, "BigImgPath": "sample string 10", "UpdateDate": "2020-03-10T14:36:22.012729+08:00", "CM_Type": "sample string 12", "MaxPrice": 1.0 } ] } } ```