注销
<p><strong>简要描述:</strong> </p>
<ul>
<li>注销接口</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://ip:port/service/rest/v1/account/cancel</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;">suggestion</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">String</td>
<td>建议</td>
</tr>
<tr>
<td style="text-align: left;">reason</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>标识是否在web注销, 0-web, 1-h5, 默认web注销</td>
</tr>
<tr>
<td style="text-align: left;">accountUid</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">String</td>
<td>要注销的accountUid,默认为当前登录账号Uid</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/account/cancel
{
&quot;reason&quot;:&quot;其他&quot;,
&quot;suggestion&quot;:&quot;建议&quot;,
&quot;source&quot;:&quot;esign&quot;
}</code></pre>
<p><strong>返回参数:</strong> </p>
<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;">redirectUrl</td>
<td style="text-align: left;">String</td>
<td>注销成功后的重定向地址,由接收端控制是否跳转</td>
</tr>
</tbody>
</table>
<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;: {
&quot;redirectUrl&quot;: &quot;http://xxxxxxxxx&quot;
}
}</code></pre>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>