| | |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | @PostMapping(value="/files-upload",consumes = MediaType.MULTIPART_FORM_DATA_VALUE) |
| | | public FileInfo feignUpload(MultipartFile file) throws Exception { |
| | | return fileService.upload(file); |
| | | @PostMapping(value="/files-upload",produces = {MediaType.APPLICATION_JSON_UTF8_VALUE},consumes = MediaType.MULTIPART_FORM_DATA_VALUE) |
| | | public FileInfo feignUpload(@RequestPart("file") MultipartFile file,@RequestParam String imgType) throws Exception { |
| | | return fileService.upload(file,imgType); |
| | | } |
| | | |
| | | |