POST api/school/getdetail

获取学区详细页

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

Request 信息

URI 参数

None.

Body 参数

参数

SchoolDetailModel
名称说明数据类型附加信息
Id

学校Id

integer

Required

HasBuildings

是否返回包含小区信息

boolean

None.

HasRoundTrade

是否返回周边小区二手房

boolean

None.

HasRoundLease

是否返回周边小区周边

boolean

None.

HasRoundBroker

是否返回周边经纪人

boolean

None.

City

城市

string

Required

Token

token

string

Required

Platform

string

None.

Request 数据格式

application/json, text/json

示例:
{
  "Id": 1,
  "HasBuildings": true,
  "HasRoundTrade": true,
  "HasRoundLease": true,
  "HasRoundBroker": true,
  "City": "sample string 6",
  "Token": "sample string 7",
  "Platform": "sample string 8"
}

application/xml, text/xml

示例:
<SchoolDetailModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.School">
  <Platform xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 8</Platform>
  <Token xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 7</Token>
  <City xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 6</City>
  <HasBuildings>true</HasBuildings>
  <HasRoundBroker>true</HasRoundBroker>
  <HasRoundLease>true</HasRoundLease>
  <HasRoundTrade>true</HasRoundTrade>
  <Id>1</Id>
</SchoolDetailModel>

application/x-www-form-urlencoded

示例:

Response 信息

输出返回说明

结果

SchoolDetailResult
名称说明数据类型附加信息
Id

学校Id

integer

None.

BuildingName

学校名

string

None.

RegionName

区域名

string

None.

Photo

图片

string

None.

RandAvgPrice

均价

string

None.

SchoolLevel

学校等级

integer

None.

BuildingCount

小区数

integer

None.

TradeCount

二手房数量

integer

None.

Address

地址

string

None.

EposX

E都市X坐标

integer

None.

EposY

E都市Y坐标

integer

None.

GisLat

纬度

decimal number

None.

GisLng

经度

decimal number

None.

OwnerTel

联系电话

string

None.

ProjectIntru

简介

string

None.

Buildings

包含小区

Collection of SchoolContainBuilding

None.

RoundTrades

周边二手房

Collection of SchoolRoundHouse

None.

RoundLeases

周边出租房

Collection of SchoolRoundHouse

None.

RoundBrokers

周边经纪人

Collection of SchoolRoundBroker

None.

ErrorCode

API错误码

APIErrorCode

None.

Msg

附带消息

string

None.

Response 返回数据格式

application/json, text/json

示例:
{
  "Id": 1,
  "BuildingName": "sample string 2",
  "RegionName": "sample string 3",
  "Photo": "sample string 4",
  "RandAvgPrice": "sample string 5",
  "SchoolLevel": 6,
  "BuildingCount": 7,
  "TradeCount": 8,
  "Address": "sample string 9",
  "EposX": 1,
  "EposY": 1,
  "GisLat": 10.1,
  "GisLng": 11.1,
  "OwnerTel": "sample string 12",
  "ProjectIntru": "sample string 13",
  "Buildings": [
    {
      "Id": 1,
      "Name": "sample string 2",
      "HangPrice": 3.1,
      "Rate": 4.1,
      "TradeCount": 5
    },
    {
      "Id": 1,
      "Name": "sample string 2",
      "HangPrice": 3.1,
      "Rate": 4.1,
      "TradeCount": 5
    }
  ],
  "RoundTrades": [
    {
      "HouId": 1,
      "BuildingId": 2,
      "BuildingName": "sample string 3",
      "Pics": "sample string 4",
      "RoomCount": 5,
      "HollCount": 6,
      "Deck": "sample string 7",
      "Floor": 8,
      "FloorCount": 9,
      "Price": 10.1,
      "PriceUnit": "sample string 11"
    },
    {
      "HouId": 1,
      "BuildingId": 2,
      "BuildingName": "sample string 3",
      "Pics": "sample string 4",
      "RoomCount": 5,
      "HollCount": 6,
      "Deck": "sample string 7",
      "Floor": 8,
      "FloorCount": 9,
      "Price": 10.1,
      "PriceUnit": "sample string 11"
    }
  ],
  "RoundLeases": [
    {
      "HouId": 1,
      "BuildingId": 2,
      "BuildingName": "sample string 3",
      "Pics": "sample string 4",
      "RoomCount": 5,
      "HollCount": 6,
      "Deck": "sample string 7",
      "Floor": 8,
      "FloorCount": 9,
      "Price": 10.1,
      "PriceUnit": "sample string 11"
    },
    {
      "HouId": 1,
      "BuildingId": 2,
      "BuildingName": "sample string 3",
      "Pics": "sample string 4",
      "RoomCount": 5,
      "HollCount": 6,
      "Deck": "sample string 7",
      "Floor": 8,
      "FloorCount": 9,
      "Price": 10.1,
      "PriceUnit": "sample string 11"
    }
  ],
  "RoundBrokers": [
    {
      "Id": 1,
      "Name": "sample string 2",
      "Photo": "sample string 3",
      "TradeCount": 4,
      "LeaseCount": 5,
      "IsExpert": true
    },
    {
      "Id": 1,
      "Name": "sample string 2",
      "Photo": "sample string 3",
      "TradeCount": 4,
      "LeaseCount": 5,
      "IsExpert": true
    }
  ],
  "ErrorCode": 0,
  "Msg": "sample string 14"
}

application/xml, text/xml

示例:
<SchoolDetailResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.School">
  <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 14</Msg>
  <Address>sample string 9</Address>
  <BuildingCount>7</BuildingCount>
  <BuildingName>sample string 2</BuildingName>
  <Buildings>
    <SchoolDetailResult.SchoolContainBuilding>
      <HangPrice>3.1</HangPrice>
      <Id>1</Id>
      <Name>sample string 2</Name>
      <Rate>4.1</Rate>
      <TradeCount>5</TradeCount>
    </SchoolDetailResult.SchoolContainBuilding>
    <SchoolDetailResult.SchoolContainBuilding>
      <HangPrice>3.1</HangPrice>
      <Id>1</Id>
      <Name>sample string 2</Name>
      <Rate>4.1</Rate>
      <TradeCount>5</TradeCount>
    </SchoolDetailResult.SchoolContainBuilding>
  </Buildings>
  <EposX>1</EposX>
  <EposY>1</EposY>
  <GisLat>10.1</GisLat>
  <GisLng>11.1</GisLng>
  <Id>1</Id>
  <OwnerTel>sample string 12</OwnerTel>
  <Photo>sample string 4</Photo>
  <ProjectIntru>sample string 13</ProjectIntru>
  <RandAvgPrice>sample string 5</RandAvgPrice>
  <RegionName>sample string 3</RegionName>
  <RoundBrokers>
    <SchoolDetailResult.SchoolRoundBroker>
      <Id>1</Id>
      <IsExpert>true</IsExpert>
      <LeaseCount>5</LeaseCount>
      <Name>sample string 2</Name>
      <Photo>sample string 3</Photo>
      <TradeCount>4</TradeCount>
    </SchoolDetailResult.SchoolRoundBroker>
    <SchoolDetailResult.SchoolRoundBroker>
      <Id>1</Id>
      <IsExpert>true</IsExpert>
      <LeaseCount>5</LeaseCount>
      <Name>sample string 2</Name>
      <Photo>sample string 3</Photo>
      <TradeCount>4</TradeCount>
    </SchoolDetailResult.SchoolRoundBroker>
  </RoundBrokers>
  <RoundLeases>
    <SchoolDetailResult.SchoolRoundHouse>
      <BuildingId>2</BuildingId>
      <BuildingName>sample string 3</BuildingName>
      <Deck>sample string 7</Deck>
      <Floor>8</Floor>
      <FloorCount>9</FloorCount>
      <HollCount>6</HollCount>
      <HouId>1</HouId>
      <Pics>sample string 4</Pics>
      <Price>10.1</Price>
      <PriceUnit>sample string 11</PriceUnit>
      <RoomCount>5</RoomCount>
    </SchoolDetailResult.SchoolRoundHouse>
    <SchoolDetailResult.SchoolRoundHouse>
      <BuildingId>2</BuildingId>
      <BuildingName>sample string 3</BuildingName>
      <Deck>sample string 7</Deck>
      <Floor>8</Floor>
      <FloorCount>9</FloorCount>
      <HollCount>6</HollCount>
      <HouId>1</HouId>
      <Pics>sample string 4</Pics>
      <Price>10.1</Price>
      <PriceUnit>sample string 11</PriceUnit>
      <RoomCount>5</RoomCount>
    </SchoolDetailResult.SchoolRoundHouse>
  </RoundLeases>
  <RoundTrades>
    <SchoolDetailResult.SchoolRoundHouse>
      <BuildingId>2</BuildingId>
      <BuildingName>sample string 3</BuildingName>
      <Deck>sample string 7</Deck>
      <Floor>8</Floor>
      <FloorCount>9</FloorCount>
      <HollCount>6</HollCount>
      <HouId>1</HouId>
      <Pics>sample string 4</Pics>
      <Price>10.1</Price>
      <PriceUnit>sample string 11</PriceUnit>
      <RoomCount>5</RoomCount>
    </SchoolDetailResult.SchoolRoundHouse>
    <SchoolDetailResult.SchoolRoundHouse>
      <BuildingId>2</BuildingId>
      <BuildingName>sample string 3</BuildingName>
      <Deck>sample string 7</Deck>
      <Floor>8</Floor>
      <FloorCount>9</FloorCount>
      <HollCount>6</HollCount>
      <HouId>1</HouId>
      <Pics>sample string 4</Pics>
      <Price>10.1</Price>
      <PriceUnit>sample string 11</PriceUnit>
      <RoomCount>5</RoomCount>
    </SchoolDetailResult.SchoolRoundHouse>
  </RoundTrades>
  <SchoolLevel>6</SchoolLevel>
  <TradeCount>8</TradeCount>
</SchoolDetailResult>