上传头像
<p><strong>简要描述:</strong></p>
<ul>
<li>用户上传图片接口</li>
</ul>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>/content/upload</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST</li>
</ul>
<p><strong>参数:</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>file</td>
<td>是</td>
<td>BLOB</td>
<td>用户图片</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code> {
"code": 200,
"data": "file path ....",
"msg":""
}</code></pre>
<p><strong>返回参数说明</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>code</td>
<td>Number</td>
<td>200-上传成功</td>
</tr>
<tr>
<td>data</td>
<td>String</td>
<td>图片路径</td>
</tr>
<tr>
<td>msg</td>
<td>String</td>
<td>系统消息</td>
</tr>
</tbody>
</table>
<p><strong>备注</strong></p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>