上传图片
<p><strong>简要描述:</strong> </p>
<ul>
<li>上传图片</li>
</ul>
<p><strong>请求api:</strong> </p>
<ul>
<li><code>/api/user/upload</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST </li>
</ul>
<p><strong>参数示例:</strong></p>
<pre><code>{
"type": "1",
"file": "图片",
}</code></pre>
<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;">type</td>
<td style="text-align: left;">no</td>
<td style="text-align: left;">string</td>
<td>图片类型 1为意见反馈</td>
</tr>
<tr>
<td style="text-align: left;">file</td>
<td style="text-align: left;">yes</td>
<td style="text-align: left;">string</td>
<td>图片 (只支持jpg 、jpeg 、png、JPG、JPEG格式)</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>{
"code": 1,
"message": "上传成功!",
"result": "QuestionImg/1/11.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;">result</td>
<td style="text-align: left;">string</td>
<td>图片链接</td>
</tr>
</tbody>
</table>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>