POST api/school/getbuildings

获取学区包含的小区

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

Request 信息

URI 参数

None.

Body 参数

参数

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

学校Id

integer

Required

Lat

纬度 测距离时必填

decimal number

None.

Lng

经度 测距离时必填

decimal number

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

示例:
{
  "Id": 1,
  "Lat": 1.1,
  "Lng": 1.1,
  "Pi": 1,
  "Ps": 1,
  "City": "sample string 2",
  "Token": "sample string 3",
  "Platform": "sample string 4"
}

application/xml, text/xml

示例:
<SchoolBuildingModel 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 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>
  <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>
  <Id>1</Id>
  <Lat>1.1</Lat>
  <Lng>1.1</Lng>
</SchoolBuildingModel>

application/x-www-form-urlencoded

示例:

Response 信息

输出返回说明

结果

SchoolBuildingResult
名称说明数据类型附加信息
ContainBuildings

包含的小区

Collection of ContainBuilding

None.

TotalCount

总记录数

integer

None.

TotalPage

总页数

integer

None.

ErrorCode

API错误码

APIErrorCode

None.

Msg

附带消息

string

None.

Response 返回数据格式

application/json, text/json

示例:
{
  "ContainBuildings": [
    {
      "Id": 1,
      "Name": "sample string 2",
      "HangPrice": 3.1,
      "IsUrgentSaleCount": 4,
      "IsFreeDutyCount": 5,
      "PayDate": "sample string 6",
      "Distance": 7.1,
      "SellCount": 8,
      "TradeCount": 9
    },
    {
      "Id": 1,
      "Name": "sample string 2",
      "HangPrice": 3.1,
      "IsUrgentSaleCount": 4,
      "IsFreeDutyCount": 5,
      "PayDate": "sample string 6",
      "Distance": 7.1,
      "SellCount": 8,
      "TradeCount": 9
    }
  ],
  "TotalCount": 1,
  "TotalPage": 2,
  "ErrorCode": 0,
  "Msg": "sample string 3"
}

application/xml, text/xml

示例:
<SchoolBuildingResult 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 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>
  <ContainBuildings>
    <SchoolBuildingResult.ContainBuilding>
      <Distance>7.1</Distance>
      <HangPrice>3.1</HangPrice>
      <Id>1</Id>
      <IsFreeDutyCount>5</IsFreeDutyCount>
      <IsUrgentSaleCount>4</IsUrgentSaleCount>
      <Name>sample string 2</Name>
      <PayDate>sample string 6</PayDate>
      <SellCount>8</SellCount>
      <TradeCount>9</TradeCount>
    </SchoolBuildingResult.ContainBuilding>
    <SchoolBuildingResult.ContainBuilding>
      <Distance>7.1</Distance>
      <HangPrice>3.1</HangPrice>
      <Id>1</Id>
      <IsFreeDutyCount>5</IsFreeDutyCount>
      <IsUrgentSaleCount>4</IsUrgentSaleCount>
      <Name>sample string 2</Name>
      <PayDate>sample string 6</PayDate>
      <SellCount>8</SellCount>
      <TradeCount>9</TradeCount>
    </SchoolBuildingResult.ContainBuilding>
  </ContainBuildings>
</SchoolBuildingResult>