获取公共房列表

https://api.orbitaiot.com/open/v1/hotel/pubRoomList


1. HTTP请求方法及示例

POST /open/v1/hotel/pubRoomList 
Host: api.orbitaiot.com
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIzMCIsImp0aSI6IjA3ODk2NjQzZWNjNzkzYzBjN2M2......
{    "name": "test room"}

2. 参数说明

Headers参数

字段类型是否必需
Content-Type
Stringapplication/json
Authorization
StringBearer + 空格 + access_token值



Body参数

名称类型是否必需描述
nameStringN筛选条件,通道名称

3. 返回参数及示例

参数类型描述
code
Int

message
String

data
JSONArray


data列表中的对象

参数类型描述
listJSONArray


list列表中的对象

参数类型描述
idInt
buildingIdInt
floorIdInt
nameString
floorNumberString
roomCardIdString
createDateString
updateDateString
LockListJSONArray下面是LockListr列表中的对象
idInt
tidInt后续员工获取开锁指令需要传这个tid的值;
macString后续搜索、连接蓝牙设备需要使用;
ble_versionString
software_versionString
harware_versionString
electricString



注意:   1.获取门锁的tid,后续员工获取开锁指令需要传这个tid的值;

             2.获取门锁的mac,后续搜索、连接蓝牙设备需要使用;




{    

    "code": 0,   

    "message": "success",    

    "data": {      

                              "list": [        

                                 {            

                                                          "id": 32,               

                                                         "buildingId": 0,               

                                                         "floorId": 0,               

                                                         "roomSysType": 4,               

                                                         "roomType": 5,                

                                                        "roomTypeName": "Public room 1",                

                                                        "name": "test room",               

                                                        "createDate": "2025-08-13 10:43:14",              

                                                       "updateDate": "2026-06-02 14:40:07",               

                                                        "batteryAlarm": 0,               

                                                        "lockList": [                   

                                                                    {                       

                                                                             "id": 926,                      

                                                                           "tid": 415,                      

                                                                           "mac": "3cab72ab0d80",                        

                                                                          "bleVersion": "",                     

                                                                          "softwareVersion": "v1.1.25.1",                        

                                                                         "hardwareVersion": "v84.43",                        

                                                                         "electric": "100",                       

                                                                         "roomKindName": "",                      

                                                                         "gatewayId": 0                  

                                                                  }               

                                                          ],               

                                                               "powerSwitchList": [  ]         

                                                  }     

                                     ]    

                           }

}

4. 接口示例