From e600e462f40d7c7cee8c530507d1bbd817c96cbd Mon Sep 17 00:00:00 2001 From: hyxklee Date: Fri, 22 Nov 2024 19:51:59 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EB=A9=94=EC=84=9C=EB=93=9C=20?= =?UTF-8?q?=EB=AA=85=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/file/application/mapper/FileMapper.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/leets/weeth/domain/file/application/mapper/FileMapper.java b/src/main/java/leets/weeth/domain/file/application/mapper/FileMapper.java index efc5a303..13fd228a 100644 --- a/src/main/java/leets/weeth/domain/file/application/mapper/FileMapper.java +++ b/src/main/java/leets/weeth/domain/file/application/mapper/FileMapper.java @@ -22,15 +22,15 @@ public interface FileMapper { @Mapping(target = "id", ignore = true) @Mapping(target = "post", source = "post") - File toFile(String fileName, String fileUrl, Post post); + File toFileWithPost(String fileName, String fileUrl, Post post); @Mapping(target = "id", ignore = true) @Mapping(target = "notice", source = "notice") - File toFile(String fileName, String fileUrl, Notice notice); + File toFileWithNotice(String fileName, String fileUrl, Notice notice); @Mapping(target = "id", ignore = true) @Mapping(target = "receipt", source = "receipt") - File toFile(String fileName, String fileUrl, Receipt receipt); + File toFileWithReceipt(String fileName, String fileUrl, Receipt receipt); @Mapping(target = "fileId", source = "file.id") FileResponse toFileResponse(File file); @@ -44,7 +44,7 @@ default List toFileList(List requests, Post post) { } return dto.stream() - .map(request -> toFile(request.fileName(), request.fileUrl(), post)) + .map(request -> toFileWithPost(request.fileName(), request.fileUrl(), post)) .collect(Collectors.toList()); } @@ -54,7 +54,7 @@ default List toFileList(List requests, Notice notice) { } return requests.stream() - .map(request -> toFile(request.fileName(), request.fileUrl(), notice)) + .map(request -> toFileWithNotice(request.fileName(), request.fileUrl(), notice)) .collect(Collectors.toList()); } @@ -64,7 +64,7 @@ default List toFileList(List requests, Receipt receipt) { } return requests.stream() - .map(request -> toFile(request.fileName(), request.fileUrl(), receipt)) + .map(request -> toFileWithReceipt(request.fileName(), request.fileUrl(), receipt)) .collect(Collectors.toList()); } }