上传文件
<h3>请求路由url</h3>
<p>/api/common/upload</p>
<h3>请求方式</h3>
<p>GET</p>
<h3>请求参数</h3>
<table>
<thead>
<tr>
<th style="text-align: center;"><strong> 参数 </strong></th>
<th style="text-align: center;"><strong> 说明 </strong></th>
<th style="text-align: center;"><strong> 类型 </strong></th>
<th style="text-align: center;"><strong> 是否必要 </strong></th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: center;">file</td>
<td style="text-align: center;">文件流</td>
<td style="text-align: center;">file</td>
<td style="text-align: center;">是 )</td>
</tr>
</tbody>
</table>
<h3>请求结果</h3>
<pre><code>{
"code": 1,
"msg": "上传成功",
"time": "1642165793",
"data": {
"id": "26",
"url": "/uploads/20220114/ec65302b4bbbef78154f19193528f48b.rar",
"fullurl": "http://cicp/uploads/20220114/ec65302b4bbbef78154f19193528f48b.rar"
}
}</code></pre>
<h3>备注</h3>
<p>支持单张/多张上传,多张前端需要循环请求。</p>