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