嘟嘟有位API文档(对外)

嘟嘟有位API文档(对外)


设备状态查询

<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>{ &amp;quot;SnList&amp;quot;: [ &amp;quot;4E5446344700000F00620030&amp;quot;, &amp;quot;4E5446344700000F00620032&amp;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>{ &amp;quot;Message&amp;quot;: &amp;quot;调用完成,对应调用状态详看Value&amp;quot;, &amp;quot;Status&amp;quot;: 0, &amp;quot;Value&amp;quot;: [ { &amp;quot;DevSN&amp;quot;: &amp;quot;4E5446344700000F00620030&amp;quot;, &amp;quot;CreateTime&amp;quot;: &amp;quot;2024-03-12T09:28:55.8360178+08:00&amp;quot;, &amp;quot;DevLastOnlineTime&amp;quot;: &amp;quot;2024-03-12T09:30:10.940392+08:00&amp;quot;, &amp;quot;ElectricQuantity&amp;quot;: 70, &amp;quot;LockStatus&amp;quot;: 1, &amp;quot;LockStatus_Description&amp;quot;: &amp;quot;车位锁上升到位&amp;quot;, &amp;quot;SpaceEmpty&amp;quot;: 2, &amp;quot;ErrCode&amp;quot;: &amp;quot;0000000000000000&amp;quot;, &amp;quot;OptOrder&amp;quot;: &amp;quot;00000000&amp;quot;, &amp;quot;Online&amp;quot;: true }, { &amp;quot;DevSN&amp;quot;: &amp;quot;4E5446344700000F00620032&amp;quot;, &amp;quot;CreateTime&amp;quot;: &amp;quot;2024-03-12T09:30:19.8206563+08:00&amp;quot;, &amp;quot;DevLastOnlineTime&amp;quot;: &amp;quot;2024-03-12T09:30:19.8206563+08:00&amp;quot;, &amp;quot;ElectricQuantity&amp;quot;: 0, &amp;quot;LockStatus&amp;quot;: 0, &amp;quot;LockStatus_Description&amp;quot;: &amp;quot;设备离线&amp;quot;, &amp;quot;SpaceEmpty&amp;quot;: 0, &amp;quot;ErrCode&amp;quot;: &amp;quot;0000000000000000&amp;quot;, &amp;quot;OptOrder&amp;quot;: &amp;quot;00000000&amp;quot;, &amp;quot;Online&amp;quot;: false } ], &amp;quot;ErrCode&amp;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>

页面列表

ITEM_HTML