获取楼栋下部位

更新时间:2021-10-15 14:18:45

接口说明

获取楼栋下部位(主要是房间)

基本信息

请求方式: POST

请求路径:

https://prod.open-api.mysre.cn/building/locations

请求参数

参数名 参数位置 参数类型 必填 默认值 示例 描述
project_id body string 39ff70b4-7376-6fc3-0f15-2ce1824c7e8d
building_id body string 39ff70b8-6490-b22c-d02c-0745cf44bf66
item_type body string 实测实量
tenant_code query string zjalpha 租户code

请求示例

{
    "project_id":"39ff70b4-7376-6fc3-0f15-2ce1824c7e8d",
    "building_id":"39ff70b8-6490-b22c-d02c-0745cf44bf66",
    "item_type":"实测实量"
}

返回成功示例

{
    "errcode": 0,
    "errmsg": "请求成功",
    "data": [
        {
            "room_id": "39ff70b8-6499-ff09-cd9e-5ac8bb2c93c4",
            "building_id": "39ff70b8-6490-b22c-d02c-0745cf44bf66",
            "unit": "1",
            "floor": "1",
            "no": "101",
            "room_no": "101"
        }
]
}

返回参数说明(成功)

参数名 参数类型 描述
errcode number
errmsg string
data array
data.room_id string 房间ID
data.building_id string 楼栋ID
data.unit string 单元
data.floor string 楼层
data.no string 编号
data.room_no string 房号

失败返回示例

{
  "errcode":4001,
  "errmsg":"必填参数不能为空",
  "data":null
}

返回参数说明(失败)

参数名 参数类型 描述

results matching ""

    No results matching ""