POST api/lease/getrecommendlist

获取推荐出租房(地铁沿线、精装修、拎包入住、商业繁华)

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

Request 信息

URI 参数

None.

Body 参数

参数

CityListModel
名称说明数据类型附加信息
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

示例:
{
  "Pi": 1,
  "Ps": 1,
  "City": "sample string 1",
  "Token": "sample string 2",
  "Platform": "sample string 3"
}

application/xml, text/xml

示例:
<CityListModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">
  <Platform>sample string 3</Platform>
  <Token>sample string 2</Token>
  <City>sample string 1</City>
  <Pi>1</Pi>
  <Ps>1</Ps>
</CityListModel>

application/x-www-form-urlencoded

示例:

Response 信息

输出返回说明

结果

LeaseRecommendResult
名称说明数据类型附加信息
Leases

出租房列表

Collection of LeaseRecommend

None.

ErrorCode

API错误码

APIErrorCode

None.

Msg

附带消息

string

None.

Response 返回数据格式

application/json, text/json

示例:
{
  "Leases": [
    {
      "Id": 1,
      "BuildingID": 2,
      "HollCount": 3,
      "RoomCount": 4,
      "BldgArea": 5.1,
      "Pics": "sample string 6",
      "BuildingName": "sample string 7",
      "Floor": 8,
      "FloorCount": 9,
      "RefPrice": 10.1,
      "PriceUnit": "sample string 11",
      "TypeName": "sample string 12"
    },
    {
      "Id": 1,
      "BuildingID": 2,
      "HollCount": 3,
      "RoomCount": 4,
      "BldgArea": 5.1,
      "Pics": "sample string 6",
      "BuildingName": "sample string 7",
      "Floor": 8,
      "FloorCount": 9,
      "RefPrice": 10.1,
      "PriceUnit": "sample string 11",
      "TypeName": "sample string 12"
    }
  ],
  "ErrorCode": 0,
  "Msg": "sample string 1"
}

application/xml, text/xml

示例:
<LeaseRecommendResult 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 1</Msg>
  <Leases>
    <LeaseRecommendResult.LeaseRecommend>
      <BldgArea>5.1</BldgArea>
      <BuildingID>2</BuildingID>
      <BuildingName>sample string 7</BuildingName>
      <Floor>8</Floor>
      <FloorCount>9</FloorCount>
      <HollCount>3</HollCount>
      <Id>1</Id>
      <Pics>sample string 6</Pics>
      <PriceUnit>sample string 11</PriceUnit>
      <RefPrice>10.1</RefPrice>
      <RoomCount>4</RoomCount>
      <TypeName>sample string 12</TypeName>
    </LeaseRecommendResult.LeaseRecommend>
    <LeaseRecommendResult.LeaseRecommend>
      <BldgArea>5.1</BldgArea>
      <BuildingID>2</BuildingID>
      <BuildingName>sample string 7</BuildingName>
      <Floor>8</Floor>
      <FloorCount>9</FloorCount>
      <HollCount>3</HollCount>
      <Id>1</Id>
      <Pics>sample string 6</Pics>
      <PriceUnit>sample string 11</PriceUnit>
      <RefPrice>10.1</RefPrice>
      <RoomCount>4</RoomCount>
      <TypeName>sample string 12</TypeName>
    </LeaseRecommendResult.LeaseRecommend>
  </Leases>
</LeaseRecommendResult>