上传文件
<p><strong>简要描述:</strong> </p>
<ul>
<li>题库添加上传选项图片、视频解析文件</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>/question/upload</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;">file</td>
<td>上传文件name值(最大8m)</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code> {
"message":"ok",
"code":200,
"data":{
"url":"uploads/20191024/d79f16177aa4d3bf4d2e2398f41c6d68.PNG"
}
}</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;">url</td>
<td style="text-align: left;">string</td>
<td>上传后的文件地址</td>
</tr>
</tbody>
</table>
<p><strong>备注</strong>
返回的头像地址没有域名。需要自己拼接接口域名</p>