| | |
| | | |
| | | @PostMapping |
| | | @PreAuthorize("hasAuthority('filesUpload:add')") |
| | | public void addFilesUpload(@NotNull(message = "{required}") Long folderid, MultipartFile file, HttpServletRequest request) throws FebsException { |
| | | public void addFilesUpload(@NotNull(message = "{required}") Long folderid, MultipartFile file) throws FebsException { |
| | | try { |
| | | this.filesUploadService.createFilesUpload(folderid, file); |
| | | } catch (Exception e) { |
| | |
| | | } catch (Exception e) { |
| | | String message = "修改FilesUpload失败"; |
| | | log.error(message, e); |
| | | throw new FebsException(e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | @PostMapping("/mvFiles") |
| | | @PreAuthorize("hasAuthority('filesUpload:mv')") |
| | | public void mvFiles(@NotBlank(message = "{required}") String fileids,@NotNull(message = "{required}") Long folderid) throws FebsException { |
| | | try { |
| | | this.filesUploadService.mvFiles(fileids,folderid); |
| | | } catch (Exception e) { |
| | | String message = "移动文件失败"; |
| | | log.error(message, e); |
| | | throw new FebsException(message); |
| | | } |
| | | } |