白名单授权
<p><strong>接口描述:</strong></p>
<ul>
<li>按相机序列号授权,对应一个流水,如果多个相机序列号请分开json来post</li>
</ul>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>/AddWhites</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>CamSn</td>
<td>是</td>
<td>string</td>
<td>相机序列号,全球唯一</td>
</tr>
<tr>
<td>Msg_id</td>
<td>是</td>
<td>string</td>
<td>本次操作流水号,AW+yyyyMMddHHmmss时间字符串</td>
</tr>
<tr>
<td>Plates</td>
<td>是</td>
<td>array</td>
<td>车牌集合</td>
</tr>
<tr>
<td>Plate</td>
<td>是</td>
<td>string</td>
<td>车牌号</td>
</tr>
<tr>
<td>Exp_time</td>
<td>是</td>
<td>string</td>
<td>过期时间,需得大于当前时间</td>
</tr>
<tr>
<td>SpaceLetf</td>
<td>是</td>
<td>int</td>
<td>左车位(1:授权、0:不授权)</td>
</tr>
<tr>
<td>SpaceRight</td>
<td>是</td>
<td>int</td>
<td>右车位(1:授权、0:不授权)</td>
</tr>
<tr>
<td>Enable_time</td>
<td>是</td>
<td>string</td>
<td>生效日期</td>
</tr>
<tr>
<td>Overdue_time</td>
<td>是</td>
<td>string</td>
<td>失效日期</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;CamSn&quot;: &quot;a84651e4-be5e4c7e&quot;,
&quot;Msg_id&quot;: &quot;AW20230410111212&quot;,
&quot;Plates&quot;: [
{
&quot;Plate&quot;: &quot;粤A12121&quot;,
&quot;SpaceLetf&quot;: 1,
&quot;SpaceRight&quot;: 1,
&quot;Exp_time&quot;: &quot;2023-05-31 11:57:45&quot;,
&quot;Enable_time&quot;: &quot;2023-05-31 11:57:45&quot;,
&quot;Overdue_time&quot;: &quot;2023-05-31 11:57:45&quot;
}
]
}
}</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>
<pre><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></pre>