POST api/trade/getlistforweb

获取列表 For web

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

Request 信息

URI 参数

None.

Body 参数

参数

TradeListModel
名称说明数据类型附加信息
IsSchoolHouse

是否学区房

boolean

None.

SchoolId

学区id

integer

None.

IsTaxless

是否无税

boolean

None.

IsUrgentSale

是否急售

boolean

None.

IsHot

热推

boolean

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

示例:
{
  "IsSchoolHouse": true,
  "SchoolId": 1,
  "IsTaxless": true,
  "IsUrgentSale": true,
  "IsHot": true,
  "RegionCode": "sample string 4",
  "Board": 5,
  "Price": "sample string 6",
  "Area": "sample string 7",
  "Age": "sample string 8",
  "RoomType": 9,
  "HouseType": 10,
  "Deck": 11,
  "Direct": 12,
  "Source": 1,
  "RefreshDate": "2020-04-04T07:33:34.5920132+08:00",
  "Lat": 1.1,
  "Lng": 1.1,
  "Distance": 1,
  "IsGisCoord": true,
  "PriceSort": 1,
  "AreaSort": 1,
  "ExpertFirst": true,
  "BuildingId": 1,
  "Keyword": "sample string 15",
  "IsSubway": true,
  "SubwayId": 1,
  "SubwayStaionId": 1,
  "BusId": "sample string 17",
  "IsBus": true,
  "BusStationId": 1,
  "CustId": 1,
  "Pi": 1,
  "Ps": 1,
  "City": "sample string 19",
  "Token": "sample string 20",
  "Platform": "sample string 21"
}

application/xml, text/xml

示例:
<TradeListModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.Trade">
  <Platform xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 21</Platform>
  <Token xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 20</Token>
  <City xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 19</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 8</Age>
  <Area xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 7</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">5</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 17</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">11</Deck>
  <Direct xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">12</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">10</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 15</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 6</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-04-04T07:33:34.5920132+08:00</RefreshDate>
  <RegionCode xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 4</RegionCode>
  <RoomType xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">9</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>
  <IsSchoolHouse>true</IsSchoolHouse>
  <IsTaxless>true</IsTaxless>
  <IsUrgentSale>true</IsUrgentSale>
  <SchoolId>1</SchoolId>
</TradeListModel>

application/x-www-form-urlencoded

示例:

Response 信息

输出返回说明

结果

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

返回标准数据

Collection of WebTrade

None.

TotalCount

总记录数

integer

None.

TotalPage

总页数

integer

None.

ErrorCode

API错误码

APIErrorCode

None.

Msg

附带消息

string

None.

Response 返回数据格式

application/json, text/json

示例:
{
  "List": [
    {
      "IsTaxless": true,
      "IsSchoolHouse": true,
      "IsUrgentSale": true,
      "IsHot": true,
      "SinglePrice": 5.1,
      "IsNew": true,
      "CustId": 7,
      "BuildingId": 8,
      "BoardId": 9,
      "RegionCode": "sample string 10",
      "RegionName": "sample string 11",
      "DeckName": "sample string 12",
      "BirthYear": "sample string 13",
      "ImgsCount": 14,
      "Address": "sample string 15",
      "LinkMan": "sample string 16",
      "LastModifyTime": "sample string 17",
      "IsLandlord": true,
      "id": 19,
      "HouseCommend": "sample string 20",
      "Pic": "sample string 21",
      "BuildingName": "sample string 22",
      "BoardName": "sample string 23",
      "RoomCount": 24,
      "HollCount": 25,
      "Floor": 26,
      "FloorCount": 27,
      "RefPrice": 28.1,
      "PriceUnit": "sample string 29",
      "BldgArea": 30.1,
      "IsExpert": true,
      "Dist": 32.0
    },
    {
      "IsTaxless": true,
      "IsSchoolHouse": true,
      "IsUrgentSale": true,
      "IsHot": true,
      "SinglePrice": 5.1,
      "IsNew": true,
      "CustId": 7,
      "BuildingId": 8,
      "BoardId": 9,
      "RegionCode": "sample string 10",
      "RegionName": "sample string 11",
      "DeckName": "sample string 12",
      "BirthYear": "sample string 13",
      "ImgsCount": 14,
      "Address": "sample string 15",
      "LinkMan": "sample string 16",
      "LastModifyTime": "sample string 17",
      "IsLandlord": true,
      "id": 19,
      "HouseCommend": "sample string 20",
      "Pic": "sample string 21",
      "BuildingName": "sample string 22",
      "BoardName": "sample string 23",
      "RoomCount": 24,
      "HollCount": 25,
      "Floor": 26,
      "FloorCount": 27,
      "RefPrice": 28.1,
      "PriceUnit": "sample string 29",
      "BldgArea": 30.1,
      "IsExpert": true,
      "Dist": 32.0
    }
  ],
  "TotalCount": 1,
  "TotalPage": 2,
  "ErrorCode": 0,
  "Msg": "sample string 3"
}

application/xml, text/xml

示例:
<WebTradeListResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.Trade">
  <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>
    <WebTradeListResult.WebTrade>
      <BldgArea xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">30.1</BldgArea>
      <BoardName xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 23</BoardName>
      <BuildingName xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 22</BuildingName>
      <Dist xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">32</Dist>
      <Floor xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">26</Floor>
      <FloorCount xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">27</FloorCount>
      <HollCount xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">25</HollCount>
      <HouseCommend xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 20</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 21</Pic>
      <PriceUnit xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 29</PriceUnit>
      <RefPrice xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">28.1</RefPrice>
      <RoomCount xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">24</RoomCount>
      <id xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">19</id>
      <Address xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 15</Address>
      <BirthYear xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 13</BirthYear>
      <BoardId xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">9</BoardId>
      <BuildingId xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">8</BuildingId>
      <CustId xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">7</CustId>
      <DeckName xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 12</DeckName>
      <ImgsCount xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">14</ImgsCount>
      <IsLandlord xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">true</IsLandlord>
      <LastModifyTime xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 17</LastModifyTime>
      <LinkMan xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 16</LinkMan>
      <RegionCode xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 10</RegionCode>
      <RegionName xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 11</RegionName>
      <IsHot>true</IsHot>
      <IsNew>true</IsNew>
      <IsSchoolHouse>true</IsSchoolHouse>
      <IsTaxless>true</IsTaxless>
      <IsUrgentSale>true</IsUrgentSale>
      <SinglePrice>5.1</SinglePrice>
    </WebTradeListResult.WebTrade>
    <WebTradeListResult.WebTrade>
      <BldgArea xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">30.1</BldgArea>
      <BoardName xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 23</BoardName>
      <BuildingName xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 22</BuildingName>
      <Dist xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">32</Dist>
      <Floor xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">26</Floor>
      <FloorCount xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">27</FloorCount>
      <HollCount xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">25</HollCount>
      <HouseCommend xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 20</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 21</Pic>
      <PriceUnit xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 29</PriceUnit>
      <RefPrice xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">28.1</RefPrice>
      <RoomCount xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">24</RoomCount>
      <id xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">19</id>
      <Address xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 15</Address>
      <BirthYear xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 13</BirthYear>
      <BoardId xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">9</BoardId>
      <BuildingId xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">8</BuildingId>
      <CustId xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">7</CustId>
      <DeckName xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 12</DeckName>
      <ImgsCount xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">14</ImgsCount>
      <IsLandlord xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">true</IsLandlord>
      <LastModifyTime xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 17</LastModifyTime>
      <LinkMan xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 16</LinkMan>
      <RegionCode xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 10</RegionCode>
      <RegionName xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 11</RegionName>
      <IsHot>true</IsHot>
      <IsNew>true</IsNew>
      <IsSchoolHouse>true</IsSchoolHouse>
      <IsTaxless>true</IsTaxless>
      <IsUrgentSale>true</IsUrgentSale>
      <SinglePrice>5.1</SinglePrice>
    </WebTradeListResult.WebTrade>
  </List>
</WebTradeListResult>