Skip to content

Commit 19cf129

Browse files
committed
update(Carousel) update locaFile to minio
Signed-off-by: LiggMax <wenzhouli06@gmail.com>
1 parent ce4b239 commit 19cf129

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

web/api-admin/src/main/java/com/ligg/apiadmin/controller/AdminCarouselController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public Response<PageVo<CarouselVo>> getCarousel(Long pageNumber, Long pageSize)
7777
@Operation(summary = "上传轮播图数据")
7878
public Response<String> upload(@Validated CarouselDto carousel,
7979
@Schema(description = "图片文件") MultipartFile imageFile) {
80-
String imagePath = fileService.uploadImage(imageFile, Constant.CAROUSEL_FILE_PATH);
80+
String imagePath = fileService.minioFileUpload(imageFile, Constant.CAROUSEL_FILE_PATH);
8181
if (imageFile.getSize() > 1024 * 1024 * 2) {
8282
return Response.error(BusinessStates.BAD_REQUEST);
8383
}

0 commit comments

Comments
 (0)