| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping("/uploadJgt") |
| | | public R uploadJgt(@RequestParam("file") List<MultipartFile> file, @RequestParam("documentId") Long documentId) { |
| | | public R uploadJgt(@RequestParam("file") MultipartFile file, @RequestParam("documentId") Long documentId) { |
| | | return documentService.uploadJgt(file, documentId); |
| | | } |
| | | |
| | |
| | | * @param fileName |
| | | * @param response |
| | | */ |
| | | @Inner(false) |
| | | @GetMapping("/file/{fileName}") |
| | | public void file(@PathVariable String fileName, HttpServletResponse response) { |
| | | @Inner(value = false) |
| | | @GetMapping("/file") |
| | | public void file(@RequestParam("fileName") String fileName, HttpServletResponse response) { |
| | | documentService.getFile(fileName, response); |
| | | } |
| | | |