HTHT


query - 通过灾害类型筛选灾害对应的枚举数据

<h5>简要描述</h5> <ul> <li>通过灾害类型筛选灾害对应的枚举数据</li> </ul> <h5>请求URL</h5> <ul> <li><code>/sys/type</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 style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">type</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>灾种类型</td> </tr> </tbody> </table> <h5>请求示例</h5> <pre><code class="language-http"># 查询雪灾的数据类型 http://localhost:8081/api/sys/type?type=XZ </code></pre> <h5>返回示例</h5> <p>```{     &quot;success&quot;: true,     &quot;errorStack&quot;: null,     &quot;code&quot;: 200,     &quot;msg&quot;: null,     &quot;count&quot;: null,     &quot;data&quot;: [         {             &quot;code&quot;: &quot;stnEvent&quot;,             &quot;description&quot;: &quot;基于单站灾害事件库&quot;         },         {             &quot;code&quot;: &quot;dangerIndex&quot;,             &quot;description&quot;: &quot;基于危险性指数&quot;         },         {             &quot;code&quot;: &quot;4&quot;,             &quot;description&quot;: &quot;基于MODIS数据&quot;         }     ] }</p> <pre><code> ##### 返回参数说明 |参数名|类型|说明| |:----- |:-----|----- | |code | String | 传给后端| |description | String | 前端展示 |</code></pre>

页面列表

ITEM_HTML