校验验证码
<p><strong>简要描述:</strong> </p>
<ul>
<li>校验验证码接口</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://ip:port/service/rest/v1/code/validate</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST application/json</li>
</ul>
<p><strong>参数:</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">account</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">String</td>
<td>手机号或邮箱,标准签中可不传,默认为当前登录账号</td>
</tr>
<tr>
<td style="text-align: left;">code</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>验证码</td>
</tr>
<tr>
<td style="text-align: left;">type</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>验证码类型 0-实名 1-签署 2-注册 3-登录 4-忘记密码 5-绑定邮箱校验 6-绑定手机号校验 7-修改/重置登录密码 8-修改/重置签署密码 9-绑定邮箱 10-绑定手机 11-重新实名认证 12-身份校验</td>
</tr>
<tr>
<td style="text-align: left;">source</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">String</td>
<td>请求来源,例如:’dingding’ , ’esign’ , ’esign_h5’ , ’alipay’</td>
</tr>
</tbody>
</table>
<p><strong>请求示例</strong></p>
<pre><code> http://ip:port/service/rest/v1/code/validate
{
&quot;account&quot;:&quot;11970268@qq.com&quot;,
&quot;code&quot;:&quot;4512&quot;,
&quot;type&quot;:&quot;0&quot;,
&quot;source&quot;:&quot;esign&quot;
}</code></pre>
<p><strong>返回示例</strong></p>
<pre><code>{
&quot;success&quot;: true,
&quot;msg&quot;: &quot;成功&quot;,
&quot;total&quot;: null,
&quot;errCode&quot;: 0,
&quot;errShow&quot;: false,
&quot;data&quot;: {}
}</code></pre>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>