POST api/school/getlist

获取学校列表

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

Request 信息

URI 参数

None.

Body 参数

参数

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

区域Code

string

None.

BoardId

版块id

integer

None.

Level

学校等级

integer

None.

Type

学校类别

integer

None.

Keyword

关键字

string

None.

BuildingCountSort

小区数量排序,1为降序 2为升序

integer

Range: inclusive between 1 and 2

HouseCountSort

房源数量排序,1为降序 2为升序

integer

Range: inclusive between 1 and 2

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

示例:
{
  "RegionCode": "sample string 1",
  "BoardId": 1,
  "Level": 1,
  "Type": 1,
  "Keyword": "sample string 2",
  "BuildingCountSort": 1,
  "HouseCountSort": 1,
  "Pi": 1,
  "Ps": 1,
  "City": "sample string 3",
  "Token": "sample string 4",
  "Platform": "sample string 5"
}

application/xml, text/xml

示例:
<SchoolListModel 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 5</Platform>
  <Token xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 4</Token>
  <City xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 3</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>
  <BoardId>1</BoardId>
  <BuildingCountSort>1</BuildingCountSort>
  <HouseCountSort>1</HouseCountSort>
  <Keyword>sample string 2</Keyword>
  <Level>1</Level>
  <RegionCode>sample string 1</RegionCode>
  <Type>1</Type>
</SchoolListModel>

application/x-www-form-urlencoded

示例:

Response 信息

输出返回说明

结果

SchoolListResult
名称说明数据类型附加信息
Schools

学校列表

Collection of SchoolList

None.

TotalCount

总记录数

integer

None.

TotalPage

总页数

integer

None.

ErrorCode

API错误码

APIErrorCode

None.

Msg

附带消息

string

None.

Response 返回数据格式

application/json, text/json

示例:
{
  "Schools": [
    {
      "Id": 1,
      "Name": "sample string 2",
      "Photo": "sample string 3",
      "TradeCount": 4,
      "BuildingCount": 5,
      "OwnerTel": "sample string 6",
      "RegionCode": "sample string 7",
      "RegionName": "sample string 8",
      "Addr": "sample string 9",
      "EposX": 1,
      "EposY": 1,
      "Level": 10,
      "Price": "sample string 11",
      "Buildings": [
        {
          "Id": 1,
          "Name": "sample string 2",
          "TradeCount": 3,
          "HangPrice": 4.1
        },
        {
          "Id": 1,
          "Name": "sample string 2",
          "TradeCount": 3,
          "HangPrice": 4.1
        }
      ]
    },
    {
      "Id": 1,
      "Name": "sample string 2",
      "Photo": "sample string 3",
      "TradeCount": 4,
      "BuildingCount": 5,
      "OwnerTel": "sample string 6",
      "RegionCode": "sample string 7",
      "RegionName": "sample string 8",
      "Addr": "sample string 9",
      "EposX": 1,
      "EposY": 1,
      "Level": 10,
      "Price": "sample string 11",
      "Buildings": [
        {
          "Id": 1,
          "Name": "sample string 2",
          "TradeCount": 3,
          "HangPrice": 4.1
        },
        {
          "Id": 1,
          "Name": "sample string 2",
          "TradeCount": 3,
          "HangPrice": 4.1
        }
      ]
    }
  ],
  "TotalCount": 1,
  "TotalPage": 2,
  "ErrorCode": 0,
  "Msg": "sample string 3"
}

application/xml, text/xml

示例:
<SchoolListResult 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>
  <Schools>
    <SchoolListResult.SchoolList>
      <Addr>sample string 9</Addr>
      <BuildingCount>5</BuildingCount>
      <Buildings>
        <SchoolListResult.SchoolBuilding>
          <HangPrice>4.1</HangPrice>
          <Id>1</Id>
          <Name>sample string 2</Name>
          <TradeCount>3</TradeCount>
        </SchoolListResult.SchoolBuilding>
        <SchoolListResult.SchoolBuilding>
          <HangPrice>4.1</HangPrice>
          <Id>1</Id>
          <Name>sample string 2</Name>
          <TradeCount>3</TradeCount>
        </SchoolListResult.SchoolBuilding>
      </Buildings>
      <EposX>1</EposX>
      <EposY>1</EposY>
      <Id>1</Id>
      <Level>10</Level>
      <Name>sample string 2</Name>
      <OwnerTel>sample string 6</OwnerTel>
      <Photo>sample string 3</Photo>
      <Price>sample string 11</Price>
      <RegionCode>sample string 7</RegionCode>
      <RegionName>sample string 8</RegionName>
      <TradeCount>4</TradeCount>
    </SchoolListResult.SchoolList>
    <SchoolListResult.SchoolList>
      <Addr>sample string 9</Addr>
      <BuildingCount>5</BuildingCount>
      <Buildings>
        <SchoolListResult.SchoolBuilding>
          <HangPrice>4.1</HangPrice>
          <Id>1</Id>
          <Name>sample string 2</Name>
          <TradeCount>3</TradeCount>
        </SchoolListResult.SchoolBuilding>
        <SchoolListResult.SchoolBuilding>
          <HangPrice>4.1</HangPrice>
          <Id>1</Id>
          <Name>sample string 2</Name>
          <TradeCount>3</TradeCount>
        </SchoolListResult.SchoolBuilding>
      </Buildings>
      <EposX>1</EposX>
      <EposY>1</EposY>
      <Id>1</Id>
      <Level>10</Level>
      <Name>sample string 2</Name>
      <OwnerTel>sample string 6</OwnerTel>
      <Photo>sample string 3</Photo>
      <Price>sample string 11</Price>
      <RegionCode>sample string 7</RegionCode>
      <RegionName>sample string 8</RegionName>
      <TradeCount>4</TradeCount>
    </SchoolListResult.SchoolList>
  </Schools>
</SchoolListResult>