上传头像
<p><strong>简要描述:</strong> </p>
<ul>
<li>上传头像</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://192.168.12.172:30096/usercenter/version-book/account/updateImage/1.0</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST </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;">file</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">image/png</td>
<td>头像图片</td>
</tr>
<tr>
<td style="text-align: left;">id</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">integer</td>
<td>账号ID</td>
</tr>
</tbody>
</table>
<p><strong>传参示例</strong></p>
<pre><code>------WebKitFormBoundary9Ed1I5NUQsWya9JB
Content-Disposition: form-data; name="file"; filename="新头像.png"
Content-Type: image/png
------WebKitFormBoundary9Ed1I5NUQsWya9JB
Content-Disposition: form-data; name="id"
366
------WebKitFormBoundary9Ed1I5NUQsWya9JB--</code></pre>
<p><strong>返回示例</strong></p>
<pre><code>{
"respCode": 10000000,
"respMessage": "上传头像成功",
"data": "http://192.168.12.172:30089/group1/M00/00/08/CioApF3omuuAXtPeAAF7yycjOTc471.jpg",
"respMark": null
}</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>
</tbody>
</table>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>