添加名单(仅单人)
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>下发人员到人脸机设备</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://IP地址:端口号/face-pack/</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST JSON</li>
</ul>
<h5>请求headers</h5>
<pre><code>{
"ip": "人脸机设备ip",
"Content-Type": "application/json"
}</code></pre>
<h5>请求示例</h5>
<pre><code>{
"version":"0.2",
"cmd":"upload person",
"id":"门禁卡号",
"name":"姓名",
"role":1,
"kind":0,
"wg_card_id":"门禁卡号",
"long_card_id":"门禁卡号",
"term_start":"useless",
"term":"forever",
"customer_text":"请通行",
"reg_image":"图像数据(二进制数据对应base64)"
}</code></pre>
<h5>返回示例</h5>
<pre><code>{
"code": 0,
"msg": "请求已成功处理"
}</code></pre>
<h5>返回参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">code</td>
<td style="text-align: left;">int</td>
<td>返回状态:0 成功,-1 失败</td>
</tr>
<tr>
<td style="text-align: left;">msg</td>
<td style="text-align: left;">string</td>
<td>返回描述</td>
</tr>
</tbody>
</table>