北京消防学院


气象对接

<h1>果凡对接</h1> <h2>POST 登录获取Token</h2> <h3>请求地址:</h3> <p><a href="http://47.94.86.249/system/api/loginxf">http://47.94.86.249/system/api/loginxf</a></p> <h3>参数说明</h3> <table> <thead> <tr> <th>参数名称</th> <th>类型</th> <th>是否必需</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>username</td> <td>string</td> <td>yes</td> <td>账号</td> </tr> <tr> <td>password</td> <td>string</td> <td>yes</td> <td>密码</td> </tr> </tbody> </table> <h3>参数示例</h3> <pre><code class="language-json">{ &amp;quot;username&amp;quot;: &amp;quot;bjxfxyadmin&amp;quot;, &amp;quot;password&amp;quot;: &amp;quot;bjxfxyyjgl2023&amp;quot; }</code></pre> <h3></h3> <h2>响应</h2> <h3>响应数据格式</h3> <table> <thead> <tr> <th>名称</th> <th>类型</th> <th>是否必需</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>» msg</td> <td>string</td> <td>true</td> <td>none</td> </tr> <tr> <td>» code</td> <td>integer</td> <td>true</td> <td>none</td> </tr> <tr> <td>» data</td> <td>object</td> <td>true</td> <td>tokenHead,token,返回令牌用于请求 拼接成成tokenHead+空格 +token</td> </tr> </tbody> </table> <h3>响应示例</h3> <pre><code class="language-json">{ &amp;quot;msg&amp;quot;: &amp;quot;登录成功&amp;quot;, &amp;quot;code&amp;quot;: 200, &amp;quot;data&amp;quot;: { &amp;quot;tokenHead&amp;quot;: &amp;quot;Bearer&amp;quot;, &amp;quot;token&amp;quot;: &amp;quot;eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJianhmeHlhZG1pbiIsImNyZWF0ZWQiOjE3MDg1ODM4NDQ4NjIsImV4cCI6MTcwODY4Mzg0NH0.d_TfTObPuDwzCYRRSrDaSjVUye5R3Y34L0gl6iWAGCM&amp;quot; } }</code></pre> <pre><code class="language-json">{ &amp;quot;msg&amp;quot;: &amp;quot;密码错误!&amp;quot;, &amp;quot;code&amp;quot;: 500, &amp;quot;data&amp;quot;: &amp;quot;ApYjwKdZX6TdoThS1ZQn4g==&amp;quot; }</code></pre> <h2>GET 获取设备含水率数据</h2> <h3>请求地址:</h3> <p><a href="http://47.94.86.249/system/api/getSavedataListxf">http://47.94.86.249/system/api/getSavedataListxf</a></p> <h3>请求头</h3> <table> <thead> <tr> <th>请求头名称</th> <th>位置</th> <th>类型</th> <th>是否必需</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>Authorization</td> <td>header</td> <td>string</td> <td>yes</td> <td>tokenHead+空格+token</td> </tr> </tbody> </table> <h3>参数说明</h3> <table> <thead> <tr> <th>参数名称</th> <th>类型</th> <th>是否必需</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>beginTime</td> <td>string</td> <td>no</td> <td>起始时间</td> </tr> <tr> <td>endTime</td> <td>string</td> <td>no</td> <td>结束时间</td> </tr> </tbody> </table> <h3>参数示例</h3> <pre><code class="language-json">beginTime: 2024-02-18 19:57:43 endTime: 2024-02-19 19:57:43</code></pre> <h3></h3> <h2>响应</h2> <h3>响应码</h3> <table> <thead> <tr> <th>HTTP 状态码</th> <th>含义</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>200</td> <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td> <td>成功</td> </tr> <tr> <td>401</td> <td><a href="https://tools.ietf.org/html/rfc7235#section-3.1">Unauthorized</a></td> <td>没有权限</td> </tr> <tr> <td>404</td> <td><a href="https://tools.ietf.org/html/rfc7231#section-6.5.4">Not Found</a></td> <td>路径错误</td> </tr> <tr> <td>500</td> <td><a href="https://tools.ietf.org/html/rfc7231#section-6.6.1">Internal Server Error</a></td> <td>服务器错误</td> </tr> </tbody> </table> <h3>响应数据格式</h3> <table> <thead> <tr> <th>名称</th> <th style="text-align: left;">类型</th> <th>是否必需</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>»msg</td> <td style="text-align: left;">string</td> <td>true</td> <td>none</td> </tr> <tr> <td>»code</td> <td style="text-align: left;">integer</td> <td>true</td> <td>none</td> </tr> <tr> <td>»rows</td> <td style="text-align: left;">object</td> <td>true</td> <td>fdr2HumiditySoil:落叶含水率,fdr3HumidityRelative:土壤容积含水率,fdr1Temperature:分层温度,fdr1HumidityRelative:分层湿度,onboardPressure:板载气压,onboardTemperature:板载温度,onboardHumidity:板载湿度,collectionTime:上报时间(+0时区,需要+8个小时),equipmentManage{didName:站点名称},</td> </tr> <tr> <td>» total</td> <td style="text-align: left;">integer</td> <td>true</td> <td>条数</td> </tr> </tbody> </table> <h3>响应示例</h3> <pre><code class="language-json">{ &amp;quot;msg&amp;quot;: &amp;quot;登录成功&amp;quot;, &amp;quot;code&amp;quot;: 200, &amp;quot;rows&amp;quot;: [ equipmentManage:{ didName:&amp;quot;站点名称&amp;quot; }, &amp;quot;fdr2HumiditySoil&amp;quot;: 17.85, &amp;quot;fdr3HumidityRelative&amp;quot;: 39.42, &amp;quot;fdr1Temperature&amp;quot;: -1.0, &amp;quot;fdr2HumidityRelative&amp;quot;: 42.85, &amp;quot;onboardPressure&amp;quot;: 101.96, &amp;quot;onboardTemperature&amp;quot;: -0.8, &amp;quot;onboardHumidity&amp;quot;: 74.91, &amp;quot;collectionTime&amp;quot;: &amp;quot;2024-02-19T11:59:37.000+00:00&amp;quot; ...] &amp;quot;total&amp;quot;:1200 }</code></pre>

页面列表

ITEM_HTML