LanTongSystem-接口文档

澜通云系统服务接口说明


图片存储

<p>[TOC]</p> <h5>简要描述</h5> <ul> <li>图片存储</li> <li>测试环境:<a href="http://119.8.54.173">http://119.8.54.173</a></li> <li>生产环境:<a href="https://ms.lantoncloud.com">https://ms.lantoncloud.com</a></li> </ul> <h5>请求URL</h5> <ul> <li>/lantong-resource/oss/endpoint/put-file</li> </ul> <h5>请求方式</h5> <ul> <li>requestMethod: POST</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;">code</td> <td style="text-align: left;">固定参数,填写:huaweicloud</td> <td style="text-align: left;">是</td> <td>string</td> </tr> <tr> <td style="text-align: left;">file</td> <td style="text-align: left;">文件</td> <td style="text-align: left;">是</td> <td>file</td> </tr> </tbody> </table> <h5>返回示例</h5> <pre><code>{ &amp;quot;code&amp;quot;: 200, &amp;quot;success&amp;quot;: true, &amp;quot;data&amp;quot;: { &amp;quot;link&amp;quot;: &amp;quot;https://lantongcloud.obs.ap-southeast-1.myhuaweicloud.com:443/upload/20230308/6938e70f7ab194ca4f9c4531da73e9f2.png&amp;quot;, &amp;quot;domain&amp;quot;: &amp;quot;https://lantongcloud.obs.ap-southeast-1.myhuaweicloud.com:443/upload/20230308/6938e70f7ab194ca4f9c4531da73e9f2.png&amp;quot;, &amp;quot;name&amp;quot;: &amp;quot;upload/20230308/6938e70f7ab194ca4f9c4531da73e9f2.png&amp;quot;, &amp;quot;originalName&amp;quot;: &amp;quot;图片1.png&amp;quot;, &amp;quot;attachId&amp;quot;: -1 }, &amp;quot;msg&amp;quot;: &amp;quot;操作成功&amp;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;">code</td> <td style="text-align: left;">状态码</td> <td>integer(int32)</td> </tr> <tr> <td style="text-align: left;">data</td> <td style="text-align: left;">承载数据</td> <td>LanTongFile</td> </tr> <tr> <td style="text-align: left;">attachId</td> <td style="text-align: left;"></td> <td>integer(int64)</td> </tr> <tr> <td style="text-align: left;">domain</td> <td style="text-align: left;"></td> <td>string</td> </tr> <tr> <td style="text-align: left;">link</td> <td style="text-align: left;">图片链接</td> <td>string</td> </tr> <tr> <td style="text-align: left;">name</td> <td style="text-align: left;">文件名</td> <td>string</td> </tr> <tr> <td style="text-align: left;">originalName</td> <td style="text-align: left;">原始文件名</td> <td>string</td> </tr> <tr> <td style="text-align: left;">msg</td> <td style="text-align: left;">返回消息</td> <td>string</td> </tr> <tr> <td style="text-align: left;">success</td> <td style="text-align: left;">是否成功</td> <td>boolean</td> </tr> </tbody> </table> <h5>code码说明</h5> <table> <thead> <tr> <th style="text-align: left;">code</th> <th style="text-align: left;">说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">200</td> <td style="text-align: left;">成功</td> </tr> <tr> <td style="text-align: left;">500</td> <td style="text-align: left;">加载失败</td> </tr> </tbody> </table>

页面列表

ITEM_HTML