获取楼栋下部位(主要是房间)
请求方式: 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
}
| 参数名 | 参数类型 | 描述 |
|---|---|---|