首页信息
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>首页信息</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://xgkj.hljnyxx.com/dongnongBackend/index.php//Home/Index/getInfo</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;">typeId</td>
<td>用户类型</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code> {
&quot;code&quot;: 0,
&quot;msg&quot;: &quot;查询成功&quot;,
&quot;data&quot;: {
&quot;plot_num&quot;: 3,
&quot;part_num&quot;: 1,
&quot;equ_online_num&quot;: 2,
&quot;project_info&quot;: [
{
&quot;count&quot;: &quot;1&quot;,
&quot;id&quot;: &quot;2&quot;,
&quot;project_intro&quot;: &quot;种植小麦&quot;,
&quot;project_name&quot;: &quot;种植田&quot;,
&quot;end_time&quot;: &quot;2023-06-09 12:13:15&quot;,
&quot;start_time&quot;: &quot;2023-03-14 10:12:19&quot;,
&quot;user_id&quot;: &quot;2&quot;,
&quot;rank_id&quot;: &quot;0&quot;,
&quot;is_pass&quot;: &quot;1&quot;
},
{
&quot;count&quot;: &quot;2&quot;,
&quot;id&quot;: &quot;4&quot;,
&quot;project_intro&quot;: &quot;种植玉米&quot;,
&quot;project_name&quot;: &quot;种植田&quot;,
&quot;end_time&quot;: &quot;2023-06-02 00:00:00&quot;,
&quot;start_time&quot;: &quot;2023-03-14 00:00:00&quot;,
&quot;user_id&quot;: &quot;1&quot;,
&quot;rank_id&quot;: &quot;0&quot;,
&quot;is_pass&quot;: &quot;1&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;">plot_num</td>
<td>地块数量</td>
</tr>
<tr>
<td style="text-align: left;">part_num</td>
<td>参与人数量</td>
</tr>
<tr>
<td style="text-align: left;">equ_online_num</td>
<td>设备在线数量</td>
</tr>
<tr>
<td style="text-align: left;">project_info</td>
<td>正在进行中的项目内容</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>首页的预警信息的数量在首页预警信息接口中获取</li>
</ul>