数据推送接口
<p>[TOC]</p>
<h3>请求说明</h3>
<p>> 请求地址:/pushData/OuFuData(待定)
请求方式:POST
数据格式:JSON
数据位于请求体里面:body</p>
<p>经纬度坐标系为 bd_09 百度地图</p>
<h4>数据类型说明(type)</h4>
<table>
<thead>
<tr>
<th>类型名称</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>gps</td>
<td>Gps定位上传</td>
</tr>
<tr>
<td>wifi</td>
<td>wifi定位</td>
</tr>
<tr>
<td>ble</td>
<td>蓝牙定位数据</td>
</tr>
<tr>
<td>alarm</td>
<td>报警数据</td>
</tr>
<tr>
<td>healthAlarm</td>
<td>健康报警</td>
</tr>
<tr>
<td>health</td>
<td>健康数据</td>
</tr>
<tr>
<td>battery</td>
<td>电量</td>
</tr>
</tbody>
</table>
<h3>1、Gps定位上传(gps)</h3>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数类型</th>
<th>是否必传</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>type</td>
<td>String</td>
<td>是</td>
<td>数据类型 gps 定位</td>
</tr>
<tr>
<td>imei</td>
<td>String</td>
<td>是</td>
<td>设备号</td>
</tr>
<tr>
<td>dateTime</td>
<td>String</td>
<td>是</td>
<td>定位时间 格式:yyyy-MM-dd HH:mm:ss</td>
</tr>
<tr>
<td>lon</td>
<td>double</td>
<td>是</td>
<td>经度</td>
</tr>
<tr>
<td>lat</td>
<td>double</td>
<td>是</td>
<td>纬度</td>
</tr>
</tbody>
</table>
<pre><code class="language-json">[
{
&quot;type&quot;: &quot;gps&quot;,
&quot;imei&quot;: &quot;860870050373526&quot;,
&quot;dateTime&quot;: &quot;2024-10-10 12:10:05&quot;,
&quot;lon&quot;: 116.308869,
&quot;lat&quot;: 40.059382
}
]</code></pre>
<h3>2、wifi定位上传(wifi)</h3>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数类型</th>
<th>是否必传</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>type</td>
<td>String</td>
<td>是</td>
<td>数据类型 wifi 定位</td>
</tr>
<tr>
<td>imei</td>
<td>String</td>
<td>是</td>
<td>设备号</td>
</tr>
<tr>
<td>dateTime</td>
<td>String</td>
<td>是</td>
<td>定位时间 格式:yyyy-MM-dd HH:mm:ss</td>
</tr>
<tr>
<td>lon</td>
<td>double</td>
<td>是</td>
<td>经度</td>
</tr>
<tr>
<td>lat</td>
<td>double</td>
<td>是</td>
<td>纬度</td>
</tr>
</tbody>
</table>
<pre><code class="language-json">{
&quot;type&quot;: &quot;wifi&quot;,
&quot;imei&quot;: &quot;860870050373526&quot;,
&quot;dateTime&quot;: &quot;2024-10-10 12:10:05&quot;,
&quot;lon&quot;: 116,
&quot;lat&quot;: 40
}</code></pre>
<h3>3、蓝牙定位数据(ble)</h3>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数类型</th>
<th>是否必传</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>type</td>
<td>String</td>
<td>是</td>
<td>数据类型 ble 蓝牙定位室内定位</td>
</tr>
<tr>
<td>imei</td>
<td>String</td>
<td>是</td>
<td>设备号</td>
</tr>
<tr>
<td>batchList</td>
<td>List</td>
<td>是</td>
<td>定位批次</td>
</tr>
<tr>
<td>&nbsp; &nbsp; batchId</td>
<td>String</td>
<td>是</td>
<td>批次id(时间戳)</td>
</tr>
<tr>
<td>&nbsp; &nbsp; bluetoothList</td>
<td>List</td>
<td>是</td>
<td>蓝牙信标信息</td>
</tr>
<tr>
<td>&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; major</td>
<td>String</td>
<td>是</td>
<td>major</td>
</tr>
<tr>
<td>&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; minor</td>
<td>String</td>
<td>是</td>
<td>minor</td>
</tr>
<tr>
<td>&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rssi</td>
<td>int</td>
<td>是</td>
<td>信号强度</td>
</tr>
</tbody>
</table>
<pre><code class="language-json">[
{
&quot;type&quot;:&quot;ble&quot;,
&quot;imei&quot;:&quot;860870050373526&quot;,
&quot;batchList&quot;: [
{
&quot;batchId&quot;: &quot;1729452271000&quot;,
&quot;bluetoothList&quot;: [
{
&quot;rssi&quot;: -63,
&quot;major&quot;: &quot;1127&quot;,
&quot;minor&quot;: &quot;F91E&quot;
},
{
&quot;rssi&quot;: -77,
&quot;major&quot;: &quot;1127&quot;,
&quot;minor&quot;: &quot;2527&quot;
},
{
&quot;rssi&quot;: -80,
&quot;major&quot;: &quot;1127&quot;,
&quot;minor&quot;: &quot;2927&quot;
},
{
&quot;rssi&quot;: -81,
&quot;major&quot;: &quot;1127&quot;,
&quot;minor&quot;: &quot;191F&quot;
}
]
}
]
}
]</code></pre>
<h3>4、报警推送(alarm)</h3>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数类型</th>
<th>是否必传</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>type</td>
<td>String</td>
<td>是</td>
<td>数据类型 alarm 定位</td>
</tr>
<tr>
<td>imei</td>
<td>String</td>
<td>是</td>
<td>设备号</td>
</tr>
<tr>
<td>dateTime</td>
<td>String</td>
<td>是</td>
<td>定位时间 格式:yyyy-MM-dd HH:mm:ss</td>
</tr>
<tr>
<td>alarmType</td>
<td>int</td>
<td>是</td>
<td>报警类型</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th>报警类型(alarmType)</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>低电量</td>
</tr>
<tr>
<td>2</td>
<td>SOS报警</td>
</tr>
<tr>
<td>3</td>
<td>关机</td>
</tr>
<tr>
<td>4</td>
<td>摘掉设备</td>
</tr>
<tr>
<td>5</td>
<td>停留报警</td>
</tr>
<tr>
<td>6</td>
<td>SOS取消</td>
</tr>
<tr>
<td>7</td>
<td>设备佩戴</td>
</tr>
<tr>
<td>8</td>
<td>跌落报警</td>
</tr>
</tbody>
</table>
<pre><code class="language-json">[
{
&quot;type&quot;:&quot;alarm&quot;,
&quot;imei&quot;:&quot;860870050373526&quot;,
&quot;dateTime&quot;: &quot;2024-10-10 12:10:05&quot;,
&quot;alarmType&quot;:1
}
]</code></pre>
<h3>5、健康报警(healthAlarm)</h3>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数类型</th>
<th>是否必传</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>type</td>
<td>String</td>
<td>是</td>
<td>数据类型 healthAlarm 健康报警</td>
</tr>
<tr>
<td>imei</td>
<td>String</td>
<td>是</td>
<td>设备号</td>
</tr>
<tr>
<td>dateTime</td>
<td>String</td>
<td>是</td>
<td>定位时间 格式:yyyy-MM-dd HH:mm:ss</td>
</tr>
<tr>
<td>alarmType</td>
<td>int</td>
<td>是</td>
<td>报警类型 0 心率报警 1 体温报警</td>
</tr>
<tr>
<td>heart</td>
<td>int</td>
<td>是</td>
<td>心率数据</td>
</tr>
<tr>
<td>temperature</td>
<td>double</td>
<td>是</td>
<td>体温数据</td>
</tr>
</tbody>
</table>
<pre><code class="language-json">[
{
&quot;type&quot;:&quot;healthAlarm&quot;,
&quot;imei&quot;:&quot;860870050373526&quot;,
&quot;dateTime&quot;: &quot;2024-10-10 12:10:05&quot;,
&quot;alarmType&quot;:1,
&quot;heart&quot;:80,
&quot;temperature&quot;:36.7
}
]</code></pre>
<h3>6、健康数据(health)</h3>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数类型</th>
<th>是否必传</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>type</td>
<td>String</td>
<td>是</td>
<td>数据类型 health 健康数据</td>
</tr>
<tr>
<td>imei</td>
<td>String</td>
<td>是</td>
<td>设备号</td>
</tr>
<tr>
<td>dateTime</td>
<td>String</td>
<td>是</td>
<td>定位时间 格式:yyyy-MM-dd HH:mm:ss</td>
</tr>
<tr>
<td>movement</td>
<td>int</td>
<td>否</td>
<td>计步</td>
</tr>
<tr>
<td>heart</td>
<td>int</td>
<td>否</td>
<td>心率</td>
</tr>
<tr>
<td>temperature</td>
<td>double</td>
<td>否</td>
<td>体温</td>
</tr>
<tr>
<td>sugar</td>
<td>double</td>
<td>否</td>
<td>血糖</td>
</tr>
<tr>
<td>dbp</td>
<td>int</td>
<td>否</td>
<td>舒张压</td>
</tr>
<tr>
<td>sbp</td>
<td>int</td>
<td>否</td>
<td>收缩压</td>
</tr>
<tr>
<td>oxygen</td>
<td>int</td>
<td>否</td>
<td>血氧</td>
</tr>
</tbody>
</table>
<pre><code class="language-json">[
{
&quot;type&quot;:&quot;healthAlarm&quot;,
&quot;imei&quot;:&quot;860870050373526&quot;,
&quot;dateTime&quot;: &quot;2024-10-10 12:10:05&quot;,
&quot;movement&quot;:10,
&quot;heart&quot;:80,
&quot;temperature&quot;:36.7,
&quot;sugar&quot;:22.1,
&quot;dbp&quot;:83,
&quot;sbp&quot;:112,
&quot;oxygen&quot;:10
}
]</code></pre>
<h3>7、电量(battery)</h3>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数类型</th>
<th>是否必传</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>type</td>
<td>String</td>
<td>是</td>
<td>数据类型 battery 电量</td>
</tr>
<tr>
<td>imei</td>
<td>String</td>
<td>是</td>
<td>设备号</td>
</tr>
<tr>
<td>dateTime</td>
<td>String</td>
<td>是</td>
<td>定位时间 格式:yyyy-MM-dd HH:mm:ss</td>
</tr>
<tr>
<td>battery</td>
<td>int</td>
<td>是</td>
<td>电量 1~100</td>
</tr>
<tr>
<td>signal</td>
<td>int</td>
<td>是</td>
<td>信号值</td>
</tr>
</tbody>
</table>
<pre><code class="language-json">[
{
&quot;type&quot;: &quot;battery&quot;,
&quot;imei&quot;: &quot;860870050373526&quot;,
&quot;dateTime&quot;: &quot;2024-10-10 12:10:05&quot;,
&quot;battery&quot;: 100,
&quot;signal&quot;: 80
}
]</code></pre>