| | |
| | | import com.ruoyi.basic.service.StorageBlobService;
|
| | | import com.ruoyi.basic.utils.FileUtil;
|
| | | import com.ruoyi.framework.aspectj.lang.annotation.Anonymous;
|
| | | import com.ruoyi.framework.aspectj.lang.annotation.Log;
|
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
|
| | | import com.ruoyi.framework.web.domain.R;
|
| | | import io.swagger.v3.oas.annotations.Operation;
|
| | | import io.swagger.v3.oas.annotations.tags.Tag;
|
| | |
| | | private final StorageBlobService storageBlobService;
|
| | | private final FileUtil fileUtil;
|
| | |
|
| | | @Log(title = "通用文件上传", businessType = BusinessType.INSERT)
|
| | | @PostMapping({"/upload"})
|
| | | @Operation(summary = "文件上传")
|
| | | public R upload(@RequestParam("files") List<MultipartFile> files) {
|
| | |
| | | * 公共文件上传
|
| | | * 此接口上传的文件永久有效,慎用
|
| | | */
|
| | | @Log(title = "公共文件上传", businessType = BusinessType.INSERT)
|
| | | @PostMapping({"/public/upload"})
|
| | | @Operation(summary = "文件上传")
|
| | | public R publicUpload(@RequestParam("files") List<MultipartFile> files) {
|