POST api/lease/getlist

获取出租房列表

默认返回json数据,若要返回xml格式数据在访问地址后加上xml=true

Request 信息

URI 参数

None.

Body 参数

参数

LeaseListModel
名称说明数据类型附加信息
IsHot

热推

boolean

None.

IsUrgentRent

急租

boolean

None.

RentWay

出租方式,如:整租、合租

RentWay

None.

RegionCode

区域

string

Matching regular expression pattern: ^\d{6}$

Board

板块

integer

None.

Price

价格

string

Matching regular expression pattern: (^\d+-\d+$)|(^\d+$)

Area

面积

string

Matching regular expression pattern: (^\d+-\d+$)|(^\d+$)

Age

房龄

string

Matching regular expression pattern: (^\d+-\d+$)|(^\d+$)

RoomType

户型

integer

None.

HouseType

房屋类型

integer

None.

Deck

装修

integer

None.

Direct

朝向

integer

None.

Source

房源来源

HouseSource

None.

RefreshDate

刷新时间戳,防止出现加载过多加载到重复房源

date

None.

Lat

经度

decimal number

None.

Lng

纬度

decimal number

None.

Distance

距离,不填默认1000米

integer

None.

IsGisCoord

是否是Gis坐标 手机定位获取到的坐标为WGS,默认WGS

boolean

None.

PriceSort

价格排序,1为降序 2为升序

integer

Range: inclusive between 1 and 2

AreaSort

按面积排序 1为降序 2为升序

integer

Range: inclusive between 1 and 2

ExpertFirst

是否优先展示小区专家的房源

boolean

None.

BuildingId

小区Id

integer

None.

Keyword

关键字

string

None.

IsSubway

是否地铁房

boolean

None.

SubwayId

地铁Id

integer

None.

SubwayStaionId

地铁站点Id

integer

None.

BusId

公交Id

string

Matching regular expression pattern: (^\d+-[1-2]$)|(^\d+$)

IsBus

是否公交房

boolean

None.

BusStationId

公交站点Id

integer

None.

CustId

经纪人Id

integer

None.

Pi

PageIndex 页码,默认1

integer

None.

Ps

PageSize 页容量,默认20,最大50

integer

None.

City

城市

string

Required

Token

token

string

Required

Platform

string

None.

Request 数据格式

application/json, text/json

示例:
{
  "IsHot": true,
  "IsUrgentRent": true,
  "RentWay": 0,
  "RegionCode": "sample string 3",
  "Board": 4,
  "Price": "sample string 5",
  "Area": "sample string 6",
  "Age": "sample string 7",
  "RoomType": 8,
  "HouseType": 9,
  "Deck": 10,
  "Direct": 11,
  "Source": 1,
  "RefreshDate": "2020-03-29T05:53:36.4346342+08:00",
  "Lat": 1.1,
  "Lng": 1.1,
  "Distance": 1,
  "IsGisCoord": true,
  "PriceSort": 1,
  "AreaSort": 1,
  "ExpertFirst": true,
  "BuildingId": 1,
  "Keyword": "sample string 14",
  "IsSubway": true,
  "SubwayId": 1,
  "SubwayStaionId": 1,
  "BusId": "sample string 16",
  "IsBus": true,
  "BusStationId": 1,
  "CustId": 1,
  "Pi": 1,
  "Ps": 1,
  "City": "sample string 18",
  "Token": "sample string 19",
  "Platform": "sample string 20"
}

application/xml, text/xml

示例:
<LeaseListModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.Lease">
  <Platform xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 20</Platform>
  <Token xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 19</Token>
  <City xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 18</City>
  <Pi xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">1</Pi>
  <Ps xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">1</Ps>
  <Age xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 7</Age>
  <Area xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 6</Area>
  <AreaSort xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">1</AreaSort>
  <Board xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">4</Board>
  <BuildingId xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">1</BuildingId>
  <BusId xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 16</BusId>
  <BusStationId xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">1</BusStationId>
  <CustId xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">1</CustId>
  <Deck xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">10</Deck>
  <Direct xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">11</Direct>
  <Distance xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">1</Distance>
  <ExpertFirst xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">true</ExpertFirst>
  <HouseType xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">9</HouseType>
  <IsBus xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">true</IsBus>
  <IsGisCoord xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">true</IsGisCoord>
  <IsSubway xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">true</IsSubway>
  <Keyword xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 14</Keyword>
  <Lat xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">1.1</Lat>
  <Lng xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">1.1</Lng>
  <Price xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 5</Price>
  <PriceSort xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">1</PriceSort>
  <RefreshDate xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">2020-03-29T05:53:36.4346342+08:00</RefreshDate>
  <RegionCode xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 3</RegionCode>
  <RoomType xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">8</RoomType>
  <Source xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">Landlord</Source>
  <SubwayId xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">1</SubwayId>
  <SubwayStaionId xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">1</SubwayStaionId>
  <IsHot>true</IsHot>
  <IsUrgentRent>true</IsUrgentRent>
  <RentWay>Whole</RentWay>
</LeaseListModel>

application/x-www-form-urlencoded

示例:

Response 信息

输出返回说明

返回结果

LeaseListResult
名称说明数据类型附加信息
List

返回标准数据

Collection of Lease

None.

TotalCount

总记录数

integer

None.

TotalPage

总页数

integer

None.

ErrorCode

API错误码

APIErrorCode

None.

Msg

附带消息

string

None.

Response 返回数据格式

application/json, text/json

示例:
{
  "List": [
    {
      "Floor": 1,
      "FloorCount": 2,
      "Direct": "sample string 3",
      "IsUrgentRent": true,
      "IsSchoolHouse": true,
      "IsHot": true,
      "RentWay": "sample string 7",
      "id": 8,
      "HouseCommend": "sample string 9",
      "Pic": "sample string 10",
      "BuildingName": "sample string 11",
      "BoardName": "sample string 12",
      "RoomCount": 13,
      "HollCount": 14,
      "RefPrice": 15.1,
      "PriceUnit": "sample string 16",
      "BldgArea": 17.1,
      "IsExpert": true,
      "Dist": 19.0
    },
    {
      "Floor": 1,
      "FloorCount": 2,
      "Direct": "sample string 3",
      "IsUrgentRent": true,
      "IsSchoolHouse": true,
      "IsHot": true,
      "RentWay": "sample string 7",
      "id": 8,
      "HouseCommend": "sample string 9",
      "Pic": "sample string 10",
      "BuildingName": "sample string 11",
      "BoardName": "sample string 12",
      "RoomCount": 13,
      "HollCount": 14,
      "RefPrice": 15.1,
      "PriceUnit": "sample string 16",
      "BldgArea": 17.1,
      "IsExpert": true,
      "Dist": 19.0
    }
  ],
  "TotalCount": 1,
  "TotalPage": 2,
  "ErrorCode": 0,
  "Msg": "sample string 3"
}

application/xml, text/xml

示例:
<LeaseListResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.Lease">
  <ErrorCode xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">SUCCESS</ErrorCode>
  <Msg xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 3</Msg>
  <TotalCount xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">1</TotalCount>
  <TotalPage xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">2</TotalPage>
  <List>
    <LeaseListResult.Lease>
      <BldgArea xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">17.1</BldgArea>
      <BoardName xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 12</BoardName>
      <BuildingName xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 11</BuildingName>
      <Dist xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">19</Dist>
      <Floor xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">1</Floor>
      <FloorCount xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">2</FloorCount>
      <HollCount xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">14</HollCount>
      <HouseCommend xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 9</HouseCommend>
      <IsExpert xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">true</IsExpert>
      <Pic xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 10</Pic>
      <PriceUnit xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 16</PriceUnit>
      <RefPrice xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">15.1</RefPrice>
      <RoomCount xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">13</RoomCount>
      <id xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">8</id>
      <Direct>sample string 3</Direct>
      <IsHot>true</IsHot>
      <IsSchoolHouse>true</IsSchoolHouse>
      <IsUrgentRent>true</IsUrgentRent>
      <RentWay>sample string 7</RentWay>
    </LeaseListResult.Lease>
    <LeaseListResult.Lease>
      <BldgArea xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">17.1</BldgArea>
      <BoardName xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 12</BoardName>
      <BuildingName xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 11</BuildingName>
      <Dist xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">19</Dist>
      <Floor xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">1</Floor>
      <FloorCount xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">2</FloorCount>
      <HollCount xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">14</HollCount>
      <HouseCommend xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 9</HouseCommend>
      <IsExpert xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">true</IsExpert>
      <Pic xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 10</Pic>
      <PriceUnit xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 16</PriceUnit>
      <RefPrice xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">15.1</RefPrice>
      <RoomCount xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">13</RoomCount>
      <id xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">8</id>
      <Direct>sample string 3</Direct>
      <IsHot>true</IsHot>
      <IsSchoolHouse>true</IsSchoolHouse>
      <IsUrgentRent>true</IsUrgentRent>
      <RentWay>sample string 7</RentWay>
    </LeaseListResult.Lease>
  </List>
</LeaseListResult>