| | |
| | | * @param bucketName 存储桶名称 |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/cos/upload-file",consumes = MediaType.MULTIPART_FORM_DATA_VALUE) |
| | | Result upload(@RequestPart("file") File file, @RequestParam("folderCode") String folderCode, @RequestParam("bucketName")String bucketName); |
| | | @RequestMapping(value = "/cos/upload-file") |
| | | Result upload(@RequestParam("file") File file, @RequestParam("folderCode") String folderCode, @RequestParam("bucketName")String bucketName); |
| | | /** |
| | | *下载图片 |
| | | * 可以使用 FileDownUtil.downToFile()方法转化为文件 |