| | |
| | | public FileInfo feignUpload(@RequestPart("file") MultipartFile file,@RequestParam String imgType) throws Exception { |
| | | return fileService.upload(file,imgType); |
| | | } |
| | | |
| | | /** |
| | | * 文件上传 返回带缩略图地址的对象,缩略图在path字段 |
| | | * |
| | | * @param file |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | @PostMapping(value="/files-thupload",produces = {MediaType.APPLICATION_JSON_UTF8_VALUE},consumes = MediaType.MULTIPART_FORM_DATA_VALUE) |
| | | public FileInfo thUpload(@RequestPart("file") MultipartFile file,@RequestParam String imgType) throws Exception { |
| | | return fileService.uploadForThumbnails(file,imgType); |
| | | } |
| | | |
| | | /** |
| | | * 文件删除 |