东农后台api接口文档

接口文档


获取温室列表(左侧导航栏动态生成)

<p>[TOC]</p> <h5>简要描述</h5> <ul> <li>获取温室名称、ID,用于左侧导航栏信息生成</li> </ul> <h5>请求URL</h5> <ul> <li><code>http://xgkj.hljnyxx.com/dongnongBackend/index.php//Home/Station/getGreenhouseList</code></li> </ul> <h5>请求方式</h5> <ul> <li>GET</li> </ul> <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;id&amp;quot;: &amp;quot;1&amp;quot;,             &amp;quot;name&amp;quot;: &amp;quot;温室A&amp;quot;,             &amp;quot;terminal_id&amp;quot;: &amp;quot;0&amp;quot;         },         { &amp;quot;id&amp;quot;: &amp;quot;2&amp;quot;,             &amp;quot;name&amp;quot;: &amp;quot;温室B&amp;quot;,             &amp;quot;terminal_id&amp;quot;: &amp;quot;0&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;">id</td> <td>温室 ID,用于温室数据查询</td> </tr> <tr> <td style="text-align: left;">name</td> <td>温室名称</td> </tr> <tr> <td style="text-align: left;">terminal_id</td> <td>采集器 ID ,用于温室数据查询</td> </tr> </tbody> </table> <h5>备注</h5> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul>

页面列表

ITEM_HTML