POST api/building/getlist

获取小区列表

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

Request 信息

URI 参数

None.

Body 参数

参数

BuildingListModel
名称说明数据类型附加信息
ReginCode

区域

string

Max length: 6

Min length: 6

Board

板块

integer

None.

Price

均价

string

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

PriceAvgSort

均价排序 1为降序 2为升序

integer

None.

RateSort

涨幅排序,1为降序 2为升序

integer

None.

BuildingType

小区类型

integer

None.

BirthYear

年代

string

None.

Lat

经度

decimal number

None.

Lng

纬度

decimal number

None.

IsGisCoord

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

boolean

None.

Keyword

关键字

string

None.

BuildingId

小区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

示例:
{
  "ReginCode": "sample string 1",
  "Board": 2,
  "Price": "sample string 3",
  "PriceAvgSort": 1,
  "RateSort": 1,
  "BuildingType": 1,
  "BirthYear": "sample string 4",
  "Lat": 1.1,
  "Lng": 1.1,
  "IsGisCoord": true,
  "Keyword": "sample string 6",
  "BuildingId": 1,
  "Pi": 1,
  "Ps": 1,
  "City": "sample string 7",
  "Token": "sample string 8",
  "Platform": "sample string 9"
}

application/xml, text/xml

示例:
<BuildingListModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.Building">
  <Platform xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 9</Platform>
  <Token xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 8</Token>
  <City xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 7</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>
  <BirthYear>sample string 4</BirthYear>
  <Board>2</Board>
  <BuildingId>1</BuildingId>
  <BuildingType>1</BuildingType>
  <IsGisCoord>true</IsGisCoord>
  <Keyword>sample string 6</Keyword>
  <Lat>1.1</Lat>
  <Lng>1.1</Lng>
  <Price>sample string 3</Price>
  <PriceAvgSort>1</PriceAvgSort>
  <RateSort>1</RateSort>
  <ReginCode>sample string 1</ReginCode>
</BuildingListModel>

application/x-www-form-urlencoded

示例:

Response 信息

输出返回说明

返回结果

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

返回数据

Collection of Building

None.

TotalCount

总记录数

integer

None.

TotalPage

总页数

integer

None.

ErrorCode

API错误码

APIErrorCode

None.

Msg

附带消息

string

None.

Response 返回数据格式

application/json, text/json

示例:
{
  "List": [
    {
      "Id": 1,
      "RegionName": "sample string 2",
      "BoardName": "sample string 3",
      "BuildingName": "sample string 4",
      "Photo": "sample string 5",
      "BuildAvgPrice": 6.1,
      "HangRate": 7.1,
      "LeaseCount": 8,
      "TradeCount": 9,
      "Dist": 10.0,
      "BoardId": 11,
      "RegionCode": "sample string 12",
      "BirthYear": "sample string 13",
      "SchoolIds": "sample string 14",
      "SchoolNames": "sample string 15",
      "Address": "sample string 16"
    },
    {
      "Id": 1,
      "RegionName": "sample string 2",
      "BoardName": "sample string 3",
      "BuildingName": "sample string 4",
      "Photo": "sample string 5",
      "BuildAvgPrice": 6.1,
      "HangRate": 7.1,
      "LeaseCount": 8,
      "TradeCount": 9,
      "Dist": 10.0,
      "BoardId": 11,
      "RegionCode": "sample string 12",
      "BirthYear": "sample string 13",
      "SchoolIds": "sample string 14",
      "SchoolNames": "sample string 15",
      "Address": "sample string 16"
    }
  ],
  "TotalCount": 1,
  "TotalPage": 2,
  "ErrorCode": 0,
  "Msg": "sample string 3"
}

application/xml, text/xml

示例:
<BuildingListResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.Building">
  <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>
    <BuildingListResult.Building>
      <Address>sample string 16</Address>
      <BirthYear>sample string 13</BirthYear>
      <BoardId>11</BoardId>
      <BoardName>sample string 3</BoardName>
      <BuildAvgPrice>6.1</BuildAvgPrice>
      <BuildingName>sample string 4</BuildingName>
      <Dist>10</Dist>
      <HangRate>7.1</HangRate>
      <Id>1</Id>
      <LeaseCount>8</LeaseCount>
      <Photo>sample string 5</Photo>
      <RegionCode>sample string 12</RegionCode>
      <RegionName>sample string 2</RegionName>
      <SchoolIds>sample string 14</SchoolIds>
      <SchoolNames>sample string 15</SchoolNames>
      <TradeCount>9</TradeCount>
    </BuildingListResult.Building>
    <BuildingListResult.Building>
      <Address>sample string 16</Address>
      <BirthYear>sample string 13</BirthYear>
      <BoardId>11</BoardId>
      <BoardName>sample string 3</BoardName>
      <BuildAvgPrice>6.1</BuildAvgPrice>
      <BuildingName>sample string 4</BuildingName>
      <Dist>10</Dist>
      <HangRate>7.1</HangRate>
      <Id>1</Id>
      <LeaseCount>8</LeaseCount>
      <Photo>sample string 5</Photo>
      <RegionCode>sample string 12</RegionCode>
      <RegionName>sample string 2</RegionName>
      <SchoolIds>sample string 14</SchoolIds>
      <SchoolNames>sample string 15</SchoolNames>
      <TradeCount>9</TradeCount>
    </BuildingListResult.Building>
  </List>
</BuildingListResult>