附件上传接口
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>供三方在文书定系统的文档模块创建一份文档,用来在用后续调用归档接收接口作为参数使用</li>
</ul>
<h5>请求方式</h5>
<ul>
<li>post</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://IP:Port/api/doc/upload/uploadFile2Doc</code></li>
</ul>
<h5>参数</h5>
<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;">category</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>目录ID</td>
</tr>
<tr>
<td style="text-align: left;">file</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>文件数据流 不是string 是二进制文件流</td>
</tr>
<tr>
<td style="text-align: left;">name</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>文件名称</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>{
&quot;data&quot;:
{
&quot;fileExtendName&quot;: &quot;png&quot;,
&quot;isImg&quot;: true,
&quot;imagefileid&quot;: &quot;92689&quot;,
&quot;filelink&quot;: &quot;/spa/document/index2file.jsp?f_weaver_belongto_userid=&amp;f_weaver_belongto_usertype=&amp;id=79564&amp;imagefileId=92689&amp;isFromAccessory=true&amp;recordLog=1&amp;isrequest=1&amp;requestid=-1&amp;desrequestid=-1&amp;authStr=&amp;authSignatureStr=&quot;,
&quot;uploaddate&quot;: &quot;2023-12-13 09:22&quot;,
&quot;showLoad&quot;: true,
&quot;filesize&quot;: &quot;331K&quot;,
&quot;loadlink&quot;: &quot;/weaver/weaver.file.FileDownload?fileid=a737e3f6e4359ea5ee5b8f71cf5d9c74fdd51de07b6d3b512f315785af13018b428bba026499dbebe022e312b5738d7a76e8662b6d7f37c27&amp;download=1&amp;requestid=-1&amp;desrequestid=-1&amp;authStr=&amp;authSignatureStr=&amp;f_weaver_belongto_userid=&amp;f_weaver_belongto_usertype=&amp;fromrequest=1&quot;,
&quot;secretLevel&quot;: &quot;4&quot;,
&quot;isDoc&quot;: &quot;1&quot;,
&quot;versionId&quot;: 50709,
&quot;filename&quot;: &quot;p_75.png&quot;,
&quot;fileidCode&quot;: &quot;afefc55b358c1f58ea3bec422c00ac2d45ccd74be6676033daad046a0006eeffd5662b842b1f89b3b3ba563a37e9c0c8e04dc6f9b062fa32f&quot;,
&quot;secretLevelValidity&quot;: &quot;&quot;,
&quot;showDelete&quot;: true,
&quot;imgSrc&quot;: &quot;/images/filetypeicons/jpg_wev8.png&quot;,
&quot;secretLevelValidityValue&quot;: &quot;公开&quot;,
&quot;fileid&quot;: &quot;79564&quot;,
&quot;username&quot;: &quot;系统管理员&quot;
}
}</code></pre>
<h5>返回参数</h5>
<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;">data</td>
<td style="text-align: left;">Json</td>
<td>上传生成文档后相关信息,其中fileid就是文档ID</td>
</tr>
</tbody>
</table>