POST api/broker/getrecommendhouse

获取小区专家的推荐房源

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

Request 信息

URI 参数

None.

Body 参数

参数

RecommendHouseModel
名称说明数据类型附加信息
RegionCode

指定区域

string

None.

BoardId

指定版块

integer

None.

BuildingId

指定小区

integer

None.

Limit

取多少个 默认3个

integer

None.

HouseLimit

房源多少套,默认2个

integer

None.

HouseType

房源类型

HouseType

None.

City

城市

string

Required

Token

token

string

Required

Platform

string

None.

Request 数据格式

application/json, text/json

示例:
{
  "RegionCode": "sample string 1",
  "BoardId": 1,
  "BuildingId": 1,
  "Limit": 1,
  "HouseLimit": 1,
  "HouseType": 1,
  "City": "sample string 2",
  "Token": "sample string 3",
  "Platform": "sample string 4"
}

application/xml, text/xml

示例:
<RecommendHouseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.Broker">
  <Platform xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 4</Platform>
  <Token xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 3</Token>
  <City xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 2</City>
  <BoardId>1</BoardId>
  <BuildingId>1</BuildingId>
  <HouseLimit>1</HouseLimit>
  <HouseType>ES</HouseType>
  <Limit>1</Limit>
  <RegionCode>sample string 1</RegionCode>
</RecommendHouseModel>

application/x-www-form-urlencoded

示例:

Response 信息

输出返回说明

结果

RecommendHouseResult
名称说明数据类型附加信息
Experts

专家列表

Collection of RecommendExpert

None.

ErrorCode

API错误码

APIErrorCode

None.

Msg

附带消息

string

None.

Response 返回数据格式

application/json, text/json

示例:
{
  "Experts": [
    {
      "Id": 1,
      "Name": "sample string 2",
      "Photo": "sample string 3",
      "BuildingId": 4,
      "BuildingName": "sample string 5",
      "Houses": [
        {
          "Id": 1,
          "BuildingName": "sample string 2",
          "Area": 3.1,
          "Price": 4.1,
          "PriceUnit": "sample string 5"
        },
        {
          "Id": 1,
          "BuildingName": "sample string 2",
          "Area": 3.1,
          "Price": 4.1,
          "PriceUnit": "sample string 5"
        }
      ]
    },
    {
      "Id": 1,
      "Name": "sample string 2",
      "Photo": "sample string 3",
      "BuildingId": 4,
      "BuildingName": "sample string 5",
      "Houses": [
        {
          "Id": 1,
          "BuildingName": "sample string 2",
          "Area": 3.1,
          "Price": 4.1,
          "PriceUnit": "sample string 5"
        },
        {
          "Id": 1,
          "BuildingName": "sample string 2",
          "Area": 3.1,
          "Price": 4.1,
          "PriceUnit": "sample string 5"
        }
      ]
    }
  ],
  "ErrorCode": 0,
  "Msg": "sample string 1"
}

application/xml, text/xml

示例:
<RecommendHouseResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.Broker">
  <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 1</Msg>
  <Experts>
    <RecommendHouseResult.RecommendExpert>
      <BuildingId>4</BuildingId>
      <BuildingName>sample string 5</BuildingName>
      <Houses>
        <RecommendHouseResult.BrokerHouse>
          <Area>3.1</Area>
          <BuildingName>sample string 2</BuildingName>
          <Id>1</Id>
          <Price>4.1</Price>
          <PriceUnit>sample string 5</PriceUnit>
        </RecommendHouseResult.BrokerHouse>
        <RecommendHouseResult.BrokerHouse>
          <Area>3.1</Area>
          <BuildingName>sample string 2</BuildingName>
          <Id>1</Id>
          <Price>4.1</Price>
          <PriceUnit>sample string 5</PriceUnit>
        </RecommendHouseResult.BrokerHouse>
      </Houses>
      <Id>1</Id>
      <Name>sample string 2</Name>
      <Photo>sample string 3</Photo>
    </RecommendHouseResult.RecommendExpert>
    <RecommendHouseResult.RecommendExpert>
      <BuildingId>4</BuildingId>
      <BuildingName>sample string 5</BuildingName>
      <Houses>
        <RecommendHouseResult.BrokerHouse>
          <Area>3.1</Area>
          <BuildingName>sample string 2</BuildingName>
          <Id>1</Id>
          <Price>4.1</Price>
          <PriceUnit>sample string 5</PriceUnit>
        </RecommendHouseResult.BrokerHouse>
        <RecommendHouseResult.BrokerHouse>
          <Area>3.1</Area>
          <BuildingName>sample string 2</BuildingName>
          <Id>1</Id>
          <Price>4.1</Price>
          <PriceUnit>sample string 5</PriceUnit>
        </RecommendHouseResult.BrokerHouse>
      </Houses>
      <Id>1</Id>
      <Name>sample string 2</Name>
      <Photo>sample string 3</Photo>
    </RecommendHouseResult.RecommendExpert>
  </Experts>
</RecommendHouseResult>