获取地理位置天气信息
<h2>获取地理位置天气信息</h2>
<p><strong>接口地址</strong>:<code>/home/locationWeather</code></p>
<p><strong>请求方式</strong>:<code>GET</code></p>
<p><strong>请求数据类型</strong>:<code>application/x-www-form-urlencoded</code></p>
<p><strong>响应数据类型</strong>:<code>*/*</code></p>
<p><strong>接口描述</strong>:</p>
<p><strong>请求参数</strong>:</p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数说明</th>
<th>请求类型</th>
<th>是否必须</th>
<th>数据类型</th>
<th>schema</th>
</tr>
</thead>
<tbody>
<tr>
<td>token</td>
<td>user token</td>
<td>header</td>
<td>false</td>
<td>string</td>
</tr>
</tbody>
</table>
<p><strong>响应状态</strong>:</p>
<table>
<thead>
<tr>
<th>状态码</th>
<th>说明</th>
<th>schema</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>OK</td>
<td>Result«地理位置天气状况VO»</td>
</tr>
<tr>
<td>401</td>
<td>Unauthorized</td>
</tr>
<tr>
<td>403</td>
<td>Forbidden</td>
</tr>
<tr>
<td>404</td>
<td>Not Found</td>
</tr>
</tbody>
</table>
<p><strong>响应参数</strong>:</p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数说明</th>
<th>类型</th>
<th>schema</th>
</tr>
</thead>
<tbody>
<tr>
<td>code</td>
<td>integer(int32)</td>
<td>integer(int32)</td>
</tr>
<tr>
<td>data</td>
<td>地理位置天气状况VO</td>
<td>地理位置天气状况VO</td>
</tr>
<tr>
<td>  location</td>
<td>位置</td>
<td>string</td>
<td>string</td>
</tr>
<tr>
<td>  weather</td>
<td>天气状况</td>
<td>string</td>
<td>string</td>
</tr>
<tr>
<td>message</td>
<td>string</td>
</tr>
</tbody>
</table>
<p><strong>响应示例</strong>:</p>
<pre><code class="language-javascript">{
"code": 1,
"message": null,
"data": [
{
"location": "内蒙古自治区 呼伦贝尔市 莫力达瓦达斡尔族自治旗",
"weather": "阴 南风4级 3℃~13℃"
}
}</code></pre>