控制地锁(以锁为主)
<p><strong>接口描述:</strong></p>
<ul>
<li>调用之后相机控制地锁开关</li>
</ul>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>/CamControlByLockSn</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST</li>
</ul>
<p><strong>data参数:</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>LockSn</td>
<td>是</td>
<td>string</td>
<td>锁序列号,全球唯一</td>
</tr>
<tr>
<td>Msg_id</td>
<td>是</td>
<td>string</td>
<td>本次操作流水号,GO+yyyyMMddHHmmss时间字符串</td>
</tr>
<tr>
<td>Option</td>
<td>是</td>
<td>int</td>
<td>1:升锁、2:降锁后⾃动升锁、3:降锁后不⾃动升锁</td>
</tr>
<tr>
<td>Force</td>
<td>是</td>
<td>int</td>
<td>强制操作0:否1:是</td>
</tr>
</tbody>
</table>
<p><strong>请求参数示例</strong></p>
<pre><code>{
&quot;PID&quot;: &quot;1631595892647792640&quot;,
&quot;Timestamp&quot;: &quot;1685987537276&quot;,
&quot;Sign&quot;: &quot;27520801F4975969140C365EC2D838D2&quot;,
&quot;data&quot;: {
&quot;LockSn&quot;: &quot;4E5033464D00001400300088&quot;,
&quot;Msg_id&quot;: &quot;GO20230508111212&quot;,
&quot;Option&quot;: 1,
&quot;Force&quot;: 0
}
}</code></pre>
<p><strong>成功返回示例</strong></p>
<pre><code>{
&quot;pid&quot;: null,
&quot;timestamp&quot;: null,
&quot;sign&quot;: null,
&quot;state&quot;: 1,
&quot;message&quot;: &quot;操作完成&quot;,
&quot;errCode&quot;: null,
&quot;data&quot;: null
}</code></pre>
<p><strong>失败返回示例</strong></p>
<p>复制<code>{ &quot;pid&quot;: null, &quot;timestamp&quot;: null, &quot;sign&quot;: null, &quot;state&quot;: 3, &quot;message&quot;: &quot;错误信息&quot;, &quot;errCode&quot;: null, &quot;data&quot;: null }</code></p>