查询机房信息
查询机房信息
接口描述
该接口用于查询机房的详细信息。
请求方式
GET
请求地址
/nrl/api/room/info
请求参数
- <font color='red'>header需要带授权X-Token</font>
参数名 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|
roomId | int | 是 | 房间id |
响应参数
参数名 | 参数类型 | 参数描述 |
---|---|---|
roomId | int | 机房id |
name | string | 机房名称 |
img | string | 机房图片 |
points | array | 点位信息 |
points.point | int | 信息点位 (1:通风口,2:观察窗,3:设备DR1,4:设备DR2,5:标准要求配置防护用品一览表) |
points.name | string | 点位名称 |
points.prompt | string | 点位提示文字 |
points.location | string | 点位位置 |
响应示例
{
&quot;code&quot;: 200,
&quot;message&quot;: &quot;操作成功&quot;,
&quot;data&quot;: {
&quot;roomId&quot;: 1,
&quot;name&quot;: &quot;机房名称&quot;,
&quot;img&quot;: &quot;机房图片&quot;,
&quot;points&quot;: [
{
&quot;point&quot;: 1,
&quot;name&quot;: &quot;通风口&quot;,
&quot;prompt&quot;: &quot;点位提示文字&quot;,
&quot;location&quot;: &quot;点位位置&quot;
},
{
&quot;point&quot;: 2,
&quot;name&quot;: &quot;观察窗&quot;,
&quot;prompt&quot;: &quot;点位提示文字&quot;,
&quot;location&quot;: &quot;点位位置&quot;
},
{
&quot;point&quot;: 3,
&quot;name&quot;: &quot;设备DR1&quot;,
&quot;prompt&quot;: &quot;点位提示文字&quot;,
&quot;location&quot;: &quot;点位位置&quot;
},
{
&quot;point&quot;: 4,
&quot;name&quot;: &quot;设备DR2&quot;,
&quot;prompt&quot;: &quot;点位提示文字&quot;,
&quot;location&quot;: &quot;点位位置&quot;
},
{
&quot;point&quot;: 5,
&quot;name&quot;: &quot;标准要求配置防护用品一览表&quot;,
&quot;prompt&quot;: &quot;点位提示文字&quot;,
&quot;location&quot;: &quot;点位位置&quot;
}
]
}
}
错误码
错误码 | 错误信息 |
---|---|
500 | 操作失败 |
401 | 暂未登录或token已经过期 |
403 | 没有相关权限 |
404 | 参数检验失败 |