东农后台api接口文档

接口文档


首页预警信息和站内消息

<p>[TOC]</p> <h5>简要描述</h5> <ul> <li>首页预警信息条数与站内消息展示</li> </ul> <h5>请求URL</h5> <ul> <li><code>http://xgkj.hljnyxx.com/dongnongBackend/index.php//Home/Alert/getAlertlog</code></li> </ul> <h5>请求方式</h5> <ul> <li>GET </li> </ul> <h5>参数</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">userId</td> <td style="text-align: left;">是</td> <td>用户ID</td> </tr> </tbody> </table> <h5>返回示例</h5> <pre><code> {     &amp;quot;code&amp;quot;: 0,     &amp;quot;msg&amp;quot;: &amp;quot;查询成功&amp;quot;,     &amp;quot;data&amp;quot;: [         {             &amp;quot;content&amp;quot;: &amp;quot;湿度超过了40%&amp;quot;,             &amp;quot;create_time&amp;quot;: &amp;quot;2023-09-11 00:00:00&amp;quot;,             &amp;quot;equ_info&amp;quot;: {                 &amp;quot;name&amp;quot;: &amp;quot;湿度传感器&amp;quot;,                 &amp;quot;greenhouseName&amp;quot;: &amp;quot;温室A&amp;quot;             }         },         {             &amp;quot;content&amp;quot;: &amp;quot;温度超过了40°&amp;quot;,             &amp;quot;create_time&amp;quot;: &amp;quot;2023-09-11 01:00:00&amp;quot;,             &amp;quot;equ_info&amp;quot;: {                 &amp;quot;name&amp;quot;: &amp;quot;温度传感器&amp;quot;,                 &amp;quot;greenhouseName&amp;quot;: &amp;quot;温室A&amp;quot;             }         }     ] }</code></pre> <h5>返回参数说明</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">content</td> <td>预警信息</td> </tr> <tr> <td style="text-align: left;">create_time</td> <td>上传时间</td> </tr> <tr> <td style="text-align: left;">equ_info</td> <td>相关的设备信息</td> </tr> <tr> <td style="text-align: left;">+name</td> <td>设备名称</td> </tr> <tr> <td style="text-align: left;">+greenhouseName</td> <td>所属温室名称</td> </tr> </tbody> </table> <h5>备注</h5> <ul> <li>首页预警信息数量展示也在这里获取,后续首页信息接口将不会返回该值</li> </ul>

页面列表

ITEM_HTML