123
This commit is contained in:
1 parent
1957b0a1ed
commit
f084d04808
5 files changed
+89
-1
No files matched your search
@@ -1,6 +1,7 @@
|
||||
package com.ruoyi.system.controller;
|
||||
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.system.domain.Base64UploadVo;
|
||||
import com.ruoyi.system.service.IFileUploadService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
@@ -28,7 +29,11 @@ public class FileUploadController {
|
||||
return AjaxResult.error(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
@PostMapping("/upload-base64")
|
||||
public AjaxResult uploadBase64File(@RequestBody Base64UploadVo vo){
|
||||
AjaxResult ajax = AjaxResult.success(fileUploadService.uploadBase64File(vo));
|
||||
return ajax;
|
||||
}
|
||||
@PostMapping("/uploads")
|
||||
public AjaxResult uploadFiles(@RequestParam("files") List<MultipartFile> files,
|
||||
@RequestParam(value = "module", required = false, defaultValue = "common") String module) {
|
||||
|
||||
Reference in new issue
Block a user