篮球协会小程序接口文档


图片上传

<p>[TOC]</p> <h5>简要描述</h5> <ul> <li>通用图片上传接口(端口为网页端端口8080)</li> </ul> <h5>请求URL</h5> <ul> <li><code>:8080/common/upload</code></li> </ul> <h5>请求方式</h5> <ul> <li>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;">file</td> <td style="text-align: left;">是</td> <td style="text-align: left;">MultipartFile</td> <td>图片文件</td> </tr> </tbody> </table> <h5>返回示例</h5> <pre><code>{ &amp;quot;msg&amp;quot;: &amp;quot;操作成功&amp;quot;, &amp;quot;fileName&amp;quot;: &amp;quot;/profile/upload/2025/08/21/照片_20250821104957A002.jpg&amp;quot;, &amp;quot;code&amp;quot;: 200, &amp;quot;newFileName&amp;quot;: &amp;quot;照片_20250821104957A002.jpg&amp;quot;, &amp;quot;url&amp;quot;: &amp;quot;http://localhost:8080/profile/upload/2025/08/21/照片_20250821104957A002.jpg&amp;quot;, &amp;quot;originalFilename&amp;quot;: &amp;quot;照片.jpg&amp;quot; } </code></pre>

页面列表

ITEM_HTML