@RestController @RequestMapping(value="/file") @Validated public class FileController extends Object
| 构造器和说明 |
|---|
FileController() |
| 限定符和类型 | 方法和说明 |
|---|---|
Result |
delete(DownloadVO downloadVO) |
org.springframework.http.ResponseEntity<byte[]> |
download(DownloadVO downloadVO) |
org.springframework.http.ResponseEntity<byte[]> |
downloadByPath(DownloadVO downloadVO) |
Result |
upload(org.springframework.web.multipart.MultipartFile file,
boolean unique,
String module,
String remark)
上传文件
|
@PostMapping(value="/upload") public Result upload(@RequestParam(value="file") org.springframework.web.multipart.MultipartFile file, @RequestParam(value="unique",required=false) boolean unique, @RequestParam(value="module",required=false) String module, @RequestParam(value="remark",required=false) String remark) throws Exception
file - 文件unique - 是否唯一Exception@PostMapping(value="/download") public org.springframework.http.ResponseEntity<byte[]> download(@Validated(value=com.efficient.common.validate.Common1Group.class) @RequestBody DownloadVO downloadVO) throws Exception
Exception@PostMapping(value="/downloadByPath") public org.springframework.http.ResponseEntity<byte[]> downloadByPath(@Validated(value=com.efficient.common.validate.Common2Group.class) @RequestBody DownloadVO downloadVO) throws Exception
Exception@PostMapping(value="/delete") public Result delete(@Validated @RequestBody DownloadVO downloadVO) throws Exception
ExceptionCopyright © 2024. All rights reserved.