获取设备列表(可条件查询)(分页)
<p>[TOC]</p>
<hr />
<h3>接口说明</h3>
<ul>
<li>获取设备列表(可条件查询)(分页)</li>
</ul>
<h3>接口地址</h3>
<ul>
<li><code>http://xxx.com/equipment/getList</code></li>
</ul>
<h3>请求方式</h3>
<ul>
<li>GET</li>
</ul>
<h3>请求参数</h3>
<ul>
<li><strong>请求行</strong></li>
</ul>
<table>
<thead>
<tr>
<th style="text-align: center;">参数名</th>
<th style="text-align: center;">类型</th>
<th style="text-align: center;">是否必选</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: center;">name</td>
<td style="text-align: center;">String</td>
<td style="text-align: center;">×</td>
<td>设备名称</td>
</tr>
<tr>
<td style="text-align: center;">equipmentDTU</td>
<td style="text-align: center;">String</td>
<td style="text-align: center;">×</td>
<td>设备DTU</td>
</tr>
<tr>
<td style="text-align: center;">info</td>
<td style="text-align: center;">String</td>
<td style="text-align: center;">×</td>
<td>参数信息</td>
</tr>
<tr>
<td style="text-align: center;">equipmentType</td>
<td style="text-align: center;">int</td>
<td style="text-align: center;">×</td>
<td>设备类型 0控制类设备 1监测类设备</td>
</tr>
<tr>
<td style="text-align: center;">isStart</td>
<td style="text-align: center;">int</td>
<td style="text-align: center;">×</td>
<td>0未启用,1启用</td>
</tr>
</tbody>
</table>
<ul>
<li><strong>请求头</strong></li>
</ul>
<table>
<thead>
<tr>
<th style="text-align: center;">参数名</th>
<th style="text-align: center;">类型</th>
<th style="text-align: center;">是否必选</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: center;">ut</td>
<td style="text-align: center;">string</td>
<td style="text-align: center;">√</td>
<td>token密钥</td>
</tr>
</tbody>
</table>
<h3>响应数据</h3>
<table>
<thead>
<tr>
<th style="text-align: center;">参数名</th>
<th style="text-align: center;">类型</th>
<th style="text-align: center;">说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: center;">res</td>
<td style="text-align: center;">String</td>
<td style="text-align: center;">1:成功,0:失败</td>
</tr>
<tr>
<td style="text-align: center;">msg</td>
<td style="text-align: center;">String</td>
<td style="text-align: center;">提示信息</td>
</tr>
<tr>
<td style="text-align: center;">data</td>
<td style="text-align: center;">Object</td>
<td style="text-align: center;">响应数据</td>
</tr>
<tr>
<td style="text-align: center;">error</td>
<td style="text-align: center;">String</td>
<td style="text-align: center;">错误信息</td>
</tr>
<tr>
<td style="text-align: center;">count</td>
<td style="text-align: center;">String</td>
<td style="text-align: center;">数量</td>
</tr>
</tbody>
</table>
<h3>响应数据data说明</h3>
<table>
<thead>
<tr>
<th style="text-align: center;">参数名</th>
<th style="text-align: center;">类型</th>
<th style="text-align: center;">说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: center;">equipmentId</td>
<td style="text-align: center;">String</td>
<td style="text-align: center;">设备id</td>
</tr>
<tr>
<td style="text-align: center;">name</td>
<td style="text-align: center;">String</td>
<td style="text-align: center;">设备名称</td>
</tr>
<tr>
<td style="text-align: center;">equipmentDTU</td>
<td style="text-align: center;">String</td>
<td style="text-align: center;">设备DTU</td>
</tr>
<tr>
<td style="text-align: center;">info</td>
<td style="text-align: center;">String</td>
<td style="text-align: center;">参数信息</td>
</tr>
<tr>
<td style="text-align: center;">equipmentType</td>
<td style="text-align: center;">int</td>
<td style="text-align: center;">设备类型 0控制类设备 1监测类设备</td>
</tr>
<tr>
<td style="text-align: center;">isStart</td>
<td style="text-align: center;">int</td>
<td style="text-align: center;">0未启用,1启用</td>
</tr>
<tr>
<td style="text-align: center;">addTime</td>
<td style="text-align: center;">String</td>
<td style="text-align: center;">添加时间</td>
</tr>
<tr>
<td style="text-align: center;">updTime</td>
<td style="text-align: center;">String</td>
<td style="text-align: center;">修改时间</td>
</tr>
<tr>
<td style="text-align: center;">isDel</td>
<td style="text-align: center;">int</td>
<td style="text-align: center;">0未删除,1删除</td>
</tr>
</tbody>
</table>
<h3>响应示例</h3>
<pre><code>{
&quot;res&quot;: 1,
&quot;msg&quot;: &quot;success&quot;,
&quot;data&quot;: [
{
&quot;equipmentId&quot;: &quot;227cc3dad9404ab1a1f88e8c08e7f14b&quot;,
&quot;name&quot;: &quot;444&quot;,
&quot;equipmentDTU&quot;: &quot;444&quot;,
&quot;info&quot;: &quot;444&quot;,
&quot;equipmentType&quot;: 0,
&quot;isStart&quot;: 0,
&quot;addTime&quot;: &quot;2023-03-07 14:19:37&quot;,
&quot;updTime&quot;: &quot;2023-03-07 14:19:37&quot;,
&quot;isDel&quot;: 0
}
],
&quot;count&quot;: 1,
&quot;error&quot;: &quot;111&quot;
}</code></pre>
<pre><code>{
&quot;res&quot;: 0,
&quot;msg&quot;: &quot;查询失败&quot;,
&quot;data&quot;: null,
&quot;count&quot;: 0,
&quot;error&quot;: null
}</code></pre>