数据推送接口
<p>[TOC]</p>
<h3>请求说明</h3>
<p>> 请求地址:/pushData/pushLiangZiData(待定)
请求方式:POST
数据格式:JSON
数据位于请求体里面:body</p>
<h3>1,报警</h3>
<h4>参数说明</h4>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数类型</th>
<th>是否必传</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>sn</td>
<td>String</td>
<td>是</td>
<td>设备编号</td>
</tr>
<tr>
<td>type</td>
<td>String</td>
<td>是</td>
<td>数据类型:alarm 报警</td>
</tr>
<tr>
<td>dateTime</td>
<td>Date</td>
<td>是</td>
<td>报警时间 yyyy-MM-dd HH:mm:ss</td>
</tr>
</tbody>
</table>
<h4>请求示例</h4>
<pre><code class="language-json">[
{
&quot;sn&quot;: &quot;313012345678&quot;,
&quot;type&quot;: &quot;alarm&quot;,
&quot;dateTime&quot;: &quot;2024-10-17 10:18:56&quot;
}
]</code></pre>
<h3>2,睡眠数据</h3>
<h4>参数说明</h4>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数类型</th>
<th>是否必传</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>sn</td>
<td>String</td>
<td>是</td>
<td>设备编号</td>
</tr>
<tr>
<td>type</td>
<td>String</td>
<td>是</td>
<td>数据类型:mattress 报警</td>
</tr>
<tr>
<td>dateTime</td>
<td>Date</td>
<td>是</td>
<td>报警时间 yyyy-MM-dd HH:mm:ss</td>
</tr>
<tr>
<td>state</td>
<td>String</td>
<td>是</td>
<td>睡眠状态 on:在床 off:离床 mov:体动</td>
</tr>
<tr>
<td>heartbeat</td>
<td>int</td>
<td>是</td>
<td>心率</td>
</tr>
<tr>
<td>breath</td>
<td>int</td>
<td>是</td>
<td>呼吸频率</td>
</tr>
</tbody>
</table>
<h4>请求示例</h4>
<pre><code class="language-json">[
{
&quot;sn&quot;: &quot;313012345678 &quot;,
&quot;type&quot;: &quot;mattress&quot;,
&quot;dateTime&quot;: &quot;2024-10-17 11:02:40&quot;,
&quot;state&quot;: &quot;off&quot;,
&quot;heartbeat&quot;: 0,
&quot;breath&quot;: 0
}
]</code></pre>