获取楼栋列表
https://api.orbitaiot.com/open/v1/hotel/buildingList
1. HTTP请求方法及示例
| POST /open/v1/hotel/buildingList Host: api.orbitaiot.com Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIyMiIsImp0aSI6Ijc1MDc1ZDUxYzVlZTYwMjVjNTcwNGJiY2M3MzIzMjViZmEwMjBlZ.......... Content-Type: application/json |
2. 参数说明
Headers参数
| 字段 | 类型 | 是否必需 | 值 |
| Content-Type | String | 是 | application/json |
| Authorization | String | 是 | Bearer + 空格 + access_token值 |
Body参数
| 字段 | 类型 | 是否必需 | 描述 |
| name | String | N | 楼栋名称 |
| buildingCardId | String | N | 栋号,两位数 |
3. 返回参数及示例
| 参数 | 类型 | 描述 |
| code | Int | |
| data | String | |
| message | String | |
| List | object | 楼栋数据 |
| id | Int | building_id,id |
| name | String | 楼栋名称 |
{ "code": 0,
"message": "success",
"data": {
"list": [
{ "id": 11,
"name": "01",
"buildingNumber": 1,
"buildingCardId": "01",
"createDate": "2025-07-24 13:41:48",
"updateDate": "2025-07-24 13:41:48"
},
{ "id": 18,
"name": "02",
"buildingNumber": 2,
"buildingCardId": "02",
"createDate": "2025-09-10 09:34:47",
"updateDate": "2025-09-10 09:34:47"
},
{ "id": 57,
"name": "03",
"buildingNumber": 3,
"buildingCardId": "03",
"createDate": "2026-04-09 10:23:02",
"updateDate": "2026-04-29 20:05:10"
}
]
}
}
4. 接口示例

