上传图片
<p><strong>简要描述:</strong> </p>
<ul>
<li>上传图片</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>/Common/ImageUpload</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;">type</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>类型</td>
</tr>
</tbody>
</table>
<p><strong>参数说明:</strong> </p>
<pre><code>type参数值
1、身份证 2、教师资格证 3、机构logo 4、头像 5、评论 6、活动 7、类目 8、新闻 9、附件 10、封面图</code></pre>
<p><strong>返回示例</strong></p>
<pre><code> {
&quot;code&quot;: 200,
&quot;msg&quot;:&quot;上传成功&quot;,
&quot;description&quot;: &quot;&quot;,
&quot;data&quot;: &quot;https://xxkcimg.oss-cn-hangzhou.aliyuncs.com/portrait/2110142303354915.png&quot;
}</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;">code</td>
<td style="text-align: left;">int</td>
<td>200成功 其它失败</td>
</tr>
</tbody>
</table>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>