设备状态查询
<h5>简要描述</h5>
<ul>
<li>用于查询设备的当前状态</li>
</ul>
<h5>接口状态</h5>
<ul>
<li>已完成</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://{{host}}/api/v3/lock/querylockstatus</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>post</li>
</ul>
<h5>Header</h5>
<table>
<thead>
<tr>
<th>header</th>
<th>示例值</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>Authorization</td>
<td>JXU4RkQ5</td>
<td>是</td>
<td>string</td>
<td>接口权限检测用</td>
</tr>
</tbody>
</table>
<h5>请求参数示例</h5>
<pre><code>{
&quot;SnList&quot;: [
&quot;4E5446344700000F00620030&quot;,
&quot;4E5446344700000F00620032&quot;
]
}</code></pre>
<h5>请求json字段说明</h5>
<table>
<thead>
<tr>
<th>字段名</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>SnList</td>
<td>是</td>
<td>array</td>
<td>要控制的车位序列号,可多个,最多批量控制为20台</td>
</tr>
<tr>
<td>SnList</td>
<td>是</td>
<td>string</td>
<td>车位序列号</td>
</tr>
</tbody>
</table>
<h5>成功返回示例</h5>
<pre><code>{
&quot;Message&quot;: &quot;调用完成,对应调用状态详看Value&quot;,
&quot;Status&quot;: 0,
&quot;Value&quot;: [
{
&quot;DevSN&quot;: &quot;4E5446344700000F00620030&quot;,
&quot;CreateTime&quot;: &quot;2024-03-12T09:28:55.8360178+08:00&quot;,
&quot;DevLastOnlineTime&quot;: &quot;2024-03-12T09:30:10.940392+08:00&quot;,
&quot;ElectricQuantity&quot;: 70,
&quot;LockStatus&quot;: 1,
&quot;LockStatus_Description&quot;: &quot;车位锁上升到位&quot;,
&quot;SpaceEmpty&quot;: 2,
&quot;ErrCode&quot;: &quot;0000000000000000&quot;,
&quot;OptOrder&quot;: &quot;00000000&quot;,
&quot;Online&quot;: true
},
{
&quot;DevSN&quot;: &quot;4E5446344700000F00620032&quot;,
&quot;CreateTime&quot;: &quot;2024-03-12T09:30:19.8206563+08:00&quot;,
&quot;DevLastOnlineTime&quot;: &quot;2024-03-12T09:30:19.8206563+08:00&quot;,
&quot;ElectricQuantity&quot;: 0,
&quot;LockStatus&quot;: 0,
&quot;LockStatus_Description&quot;: &quot;设备离线&quot;,
&quot;SpaceEmpty&quot;: 0,
&quot;ErrCode&quot;: &quot;0000000000000000&quot;,
&quot;OptOrder&quot;: &quot;00000000&quot;,
&quot;Online&quot;: false
}
],
&quot;ErrCode&quot;: 0
}</code></pre>
<h5>成功返回示例的参数说明</h5>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>Message</td>
<td>string</td>
<td>无</td>
</tr>
<tr>
<td>Status</td>
<td>string</td>
<td>无</td>
</tr>
<tr>
<td>Value</td>
<td>array</td>
<td>无</td>
</tr>
<tr>
<td>DevSN</td>
<td>string</td>
<td>无</td>
</tr>
<tr>
<td>CreateTime</td>
<td>string</td>
<td>无</td>
</tr>
<tr>
<td>DevLastOnlineTime</td>
<td>string</td>
<td>设备最后上线时间</td>
</tr>
<tr>
<td>ElectricQuantity</td>
<td>int</td>
<td>当前电量,%</td>
</tr>
<tr>
<td>LockStatus</td>
<td>string</td>
<td>设备状态,详看状态枚举表</td>
</tr>
<tr>
<td>LockStatus_Description</td>
<td>string</td>
<td>设备状态描述</td>
</tr>
<tr>
<td>SpaceEmpty</td>
<td>string</td>
<td>是否空:1=有车,2=空闲</td>
</tr>
<tr>
<td>ErrCode</td>
<td>string</td>
<td>错误代码</td>
</tr>
<tr>
<td>OptOrder</td>
<td>string</td>
<td>操作流水码</td>
</tr>
<tr>
<td>Online</td>
<td>boolean</td>
<td>是否在线</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<h3>LockStatus枚举</h3>
<table>
<thead>
<tr>
<th>值</th>
<th>值功能</th>
</tr>
</thead>
<tbody>
<tr>
<td>0</td>
<td>上电初始化</td>
</tr>
<tr>
<td>1</td>
<td>车位锁上升到位</td>
</tr>
<tr>
<td>2</td>
<td>车位锁下降到位</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>车位锁上升开关错误</td>
</tr>
<tr>
<td>7</td>
<td>车位锁下降开关错误</td>
</tr>
</tbody>
</table>