设备管理对应类型显示首页
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>所有子设备信息展示</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://xgkj.hljnyxx.com/dongnongBackend/index.php//Home/Equipment/getAllEquipmentInfo</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>GET
<h5>请求参数说明</h5></li>
</ul>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">userId</td>
<td>用户ID</td>
</tr>
<tr>
<td style="text-align: left;">pageNo</td>
<td>页码</td>
</tr>
<tr>
<td style="text-align: left;">pageSize</td>
<td>数量</td>
</tr>
<tr>
<td style="text-align: left;">typeId</td>
<td>类型ID</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>{
&quot;code&quot;: 0,
&quot;msg&quot;: &quot;请求成功&quot;,
&quot;data&quot;: [
{
&quot;id&quot;: &quot;1&quot;,
&quot;no&quot;: &quot;dn001&quot;,
&quot;name&quot;: &quot;温度传感器&quot;,
&quot;manufacturer_tel&quot;: &quot;13326335988&quot;,
&quot;manufacturer&quot;: &quot;温传感器制造商&quot;,
&quot;model&quot;: &quot;温型号一&quot;,
&quot;installer_tel&quot;: &quot;13326335988&quot;,
&quot;installer&quot;: &quot;温安装厂家一&quot;,
&quot;supplier_tel&quot;: &quot;13326335988&quot;,
&quot;supplier&quot;: &quot;温传感器供货商&quot;,
&quot;install_time&quot;: &quot;2023-03-02 12:03:26&quot;,
&quot;install_location&quot;: &quot;地点一&quot;,
&quot;classify&quot;: &quot;0&quot;,
&quot;picurl&quot;: &quot;/Public/EquipmentThumb/1.png&quot;,
&quot;is_fault&quot;: &quot;0&quot;,
&quot;is_common&quot;: &quot;0&quot;,
&quot;greenhouse&quot;: {
&quot;id&quot;: &quot;1&quot;,
&quot;name&quot;: &quot;温室A&quot;,
&quot;classify&quot;: &quot;0&quot;
},
&quot;is_online&quot;: 0,
&quot;is_use&quot;: 1
},
{
&quot;id&quot;: &quot;2&quot;,
&quot;no&quot;: &quot;dn002&quot;,
&quot;name&quot;: &quot;湿度传感器&quot;,
&quot;manufacturer_tel&quot;: &quot;13326335988&quot;,
&quot;manufacturer&quot;: &quot;温传感器制造商&quot;,
&quot;model&quot;: &quot;湿型号二&quot;,
&quot;installer_tel&quot;: &quot;13326335988&quot;,
&quot;installer&quot;: &quot;温安装厂家一&quot;,
&quot;supplier_tel&quot;: &quot;13326335988&quot;,
&quot;supplier&quot;: &quot;温传感器供货商&quot;,
&quot;install_time&quot;: &quot;2023-03-05 08:30:26&quot;,
&quot;install_location&quot;: &quot;地点二&quot;,
&quot;classify&quot;: &quot;0&quot;,
&quot;picurl&quot;: &quot;/Public/EquipmentThumb/1.png&quot;,
&quot;is_fault&quot;: &quot;0&quot;,
&quot;is_common&quot;: &quot;0&quot;,
&quot;greenhouse&quot;: {
&quot;id&quot;: &quot;1&quot;,
&quot;name&quot;: &quot;温室A&quot;,
&quot;classify&quot;: &quot;0&quot;
},
&quot;is_online&quot;: 0,
&quot;is_use&quot;: 1
}
],
&quot;count&quot;:9
}</code></pre>
<h5>返回参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">id</td>
<td>子设备主键,用于后续查询该设备详情页面</td>
</tr>
<tr>
<td style="text-align: left;">no</td>
<td>设备编号</td>
</tr>
<tr>
<td style="text-align: left;">name</td>
<td>设备名称</td>
</tr>
<tr>
<td style="text-align: left;">manufacturer_tel</td>
<td>设备制造商联系方式</td>
</tr>
<tr>
<td style="text-align: left;">manufacturer</td>
<td>设备制造商</td>
</tr>
<tr>
<td style="text-align: left;">model</td>
<td>设备型号</td>
</tr>
<tr>
<td style="text-align: left;">installer_tel</td>
<td>设备安装方联系方式</td>
</tr>
<tr>
<td style="text-align: left;">installer</td>
<td>设备安装方</td>
</tr>
<tr>
<td style="text-align: left;">supplier_tel</td>
<td>设备供货方联系方式</td>
</tr>
<tr>
<td style="text-align: left;">supplier</td>
<td>设备供货方</td>
</tr>
<tr>
<td style="text-align: left;">install_time</td>
<td>设备安装时间</td>
</tr>
<tr>
<td style="text-align: left;">install_location</td>
<td>设备安装地点</td>
</tr>
<tr>
<td style="text-align: left;">classify</td>
<td>设备类型 0-监测设备,1-控制设备,2-其他,用于展示不同背景色</td>
</tr>
<tr>
<td style="text-align: left;">picurl</td>
<td>封面图地址</td>
</tr>
<tr>
<td style="text-align: left;">is_fault</td>
<td>是否故障 0-无故障,1-故障</td>
</tr>
<tr>
<td style="text-align: left;">is_common</td>
<td>是否公用 0-不公用,1-公用</td>
</tr>
<tr>
<td style="text-align: left;">is_online</td>
<td>设备在线状态 0-离线,1-在线</td>
</tr>
<tr>
<td style="text-align: left;">is_use</td>
<td>使用情况 0-闲置,1-占用;若 is_fault = 1 则显示故障</td>
</tr>
<tr>
<td style="text-align: left;">greenhouse-name</td>
<td>设备所属地点名称</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>该接口将单设备的自身状态全部返回,为了方便后续单设备详情页面展示时候的信息展示,在单设备详情页面展示接口中,只会返回使用信息和设备维护信息,该页面信息将不会返回</li>
</ul>