开放接口/户型(列表)

最后更新:2016-10-10

URL

/rest/plotHouseType

HTTP请求方式

GET

注意事项

返回数据的排序与平台中前台各位置展示的顺序一致,暂不支持自定义排序

请求参数

参数名 必选 类型及范围 说明
token string 后台“开放接口”页面可查看到,代表授权的唯一标识
count int 单页返回的记录数,默认为10
page int 返回结果的页码,默认为0(初始页码从0开始)
hid int 是否返回某特定楼盘的户型列表,0代表返回所有楼盘的户型列表,默认为0
bedroom int 是否返回固定数量卧室的户型列表,0代表返回所有户型,默认为0

返回结果

{
  "count": "30",
  "data": [
    {
      "id": "66491",
      "hid": "20",
      "title": "162#楼B户型3房2厅1卫90",
      "image": "http://pic.hualongxiang.com/app/image/2014/0910/1410333922-228485.jpg",
      "description": "",
      "bedroom": "3",
      "livingroom": "2",
      "bathroom": "1",
      "cookroom": "0",
      "sale_status": "1",
      "is_cover": "0",
      "created": "1473661427",
      "ave_price": "0.00",
      "inside_size": "0.00",
      "size": "180.00",
      "price": "0.00",
      "plot": "华润国际社区",
      "plot_url": "http://www.hjhouse.com/huarunguojishequ"
    }
  ]
}

返回字段说明

返回值字段 字段类型 字段说明
count integer 数据总量
data[]
id integer 数据id
hid integer 关联的楼盘id
title string 户型名称
image string 户型图片
description string 户型描述
bedroom integer 卧室数量
livingroom integer 客厅数量
bathroom integer 卫生间数量
cookroom integer 厨房数量
sale_status integer 销售状态:0售罄 1在售 2 即将开盘
is_cover integer 是否为封面
created string 创建时间
ave_price float 平均价格
inside_size float 套内面积
size float 面积
price float 参考价格
plot string 关联楼盘名称
plot_url string 关联楼盘链接