文件上传接口文档
<pre><code class="language-text">暂无描述</code></pre>
<p><strong>接口URL</strong></p>
<p>> <a href="http://域名/subassembly/su/c/v1/file/upload">http://域名/subassembly/su/c/v1/file/upload</a></p>
<p><strong>请求方式</strong></p>
<p>> POST</p>
<p><strong>Content-Type</strong></p>
<p>> form-data</p>
<p><strong>请求Header参数</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>示例值</th>
<th>参数类型</th>
<th>是否必填</th>
<th>参数描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>x-tenant-code</td>
<td>hzkj</td>
<td>String</td>
<td>否</td>
<td>租户code</td>
</tr>
<tr>
<td>x-request-id</td>
<td>ce0e40a9-2df7-4f16-861f-a7946127f30a</td>
<td>String</td>
<td>否</td>
<td>请求唯一ID</td>
</tr>
<tr>
<td>x-timestamp</td>
<td>1724990364948</td>
<td>String</td>
<td>否</td>
<td>时间戳</td>
</tr>
<tr>
<td>x-auth</td>
<td>iP3pViWOBOAQA5hdylD</td>
<td>String</td>
<td>否</td>
<td>签名</td>
</tr>
</tbody>
</table>
<p><strong>请求Body参数</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>示例值</th>
<th>参数类型</th>
<th>是否必填</th>
<th>参数描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>file</td>
<td>C:\Users\admin\Downloads\13-超过20M文件-21.1 MB.docx</td>
<td>File</td>
<td>是</td>
<td>文件</td>
</tr>
</tbody>
</table>
<p><strong>响应示例</strong></p>
<ul>
<li>成功(200)</li>
</ul>
<pre><code class="language-javascript">{
&quot;code&quot;: 1200,
&quot;data&quot;: &quot;https://commonhzv3.2dmeeting.cn/Subassembly/2385d8a0-15d3-4f84-af50-6b591dd09234.png&quot;,
&quot;desc&quot;: &quot;操作成功&quot;,
&quot;ex&quot;: null,
&quot;refreshPermission&quot;: false
}</code></pre>
<table>
<thead>
<tr>
<th>参数名</th>
<th>示例值</th>
<th>参数类型</th>
<th>参数描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>code</td>
<td>SUCCESS</td>
<td>String</td>
<td>SUCCESS UNAUTHORIZED FileService_UNAUTHORIZED FORBIDDEN SYSTEM_ERROR GATEWAY_ERROR CUSTOM_ERROR WARNING PERMISSION_ERROR ACTIVATION_ERROR</td>
</tr>
<tr>
<td>data</td>
<td>-</td>
<td>String</td>
<td>-</td>
</tr>
<tr>
<td>desc</td>
<td>-</td>
<td>String</td>
<td>-</td>
</tr>
<tr>
<td>ex</td>
<td>-</td>
<td>String</td>
<td>-</td>
</tr>
<tr>
<td>refreshPermission</td>
<td>true</td>
<td>Boolean</td>
<td>-</td>
</tr>
</tbody>
</table>
<ul>
<li>失败(404)</li>
</ul>
<pre><code class="language-javascript">{
&quot;code&quot;: 1601,
&quot;data&quot;: null,
&quot;desc&quot;: &quot;文件不能超过20mb&quot;,
&quot;ex&quot;: null,
&quot;refreshPermission&quot;: false
}</code></pre>