| | |
| | | Result upload(@RequestPart("file") MultipartFile file, @RequestParam("folderCode") String folderCode, @RequestParam("bucketName")String bucketName); |
| | | |
| | | /** |
| | | *上传图片(转化实体FileUpdateDto) |
| | | * @param file 文件 |
| | | * @param folderCode 存储文件夹,比如商品轮播图:/goods/banner |
| | | * @param bucketName 存储桶名称 |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/cos/upload-multipart/name",consumes = MediaType.MULTIPART_FORM_DATA_VALUE) |
| | | Result upload(@RequestPart("file") MultipartFile file, @RequestParam("folderCode") String folderCode, @RequestParam("bucketName")String bucketName,@RequestParam("bucketName")String fileName); |
| | | |
| | | |
| | | /** |
| | | *下载图片 |
| | | * 可以使用 FileDownUtil.downToFile()方法转化为文件 |
| | | * @param cosDownDto 对象 |