From f92e4478154ab691a8b3e14e5a6674a2ccd13506 Mon Sep 17 00:00:00 2001 From: KimChanJin97 Date: Thu, 9 May 2024 02:09:18 +0900 Subject: [PATCH] =?UTF-8?q?debug:=20=EC=9E=90=EA=B8=B0=EC=86=8C=EA=B0=9C?= =?UTF-8?q?=EC=84=9C=20=EB=94=94=EB=B2=84=EA=B9=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resume/controller/ResumeController.java | 12 +++++----- .../resume/service/ResumeService.java | 24 +++++++++---------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/main/java/capstone/facefriend/resume/controller/ResumeController.java b/src/main/java/capstone/facefriend/resume/controller/ResumeController.java index 1c7d9da3ed..7da6eb8e89 100644 --- a/src/main/java/capstone/facefriend/resume/controller/ResumeController.java +++ b/src/main/java/capstone/facefriend/resume/controller/ResumeController.java @@ -30,10 +30,10 @@ public class ResumeController { @PostMapping(value = "/my-resume") public ResponseEntity postMyResume( @AuthMember Long memberId, - @RequestPart("images") List images, - @RequestPart("request") ResumePostRequest request + @RequestPart("images") List images +// @RequestPart("request") ResumePostRequest request ) throws IOException { - return ResponseEntity.ok(resumeService.postMyResume(memberId, images, request)); + return ResponseEntity.ok(resumeService.postMyResume(memberId, images)); } @GetMapping("/resume") @@ -54,10 +54,10 @@ public ResponseEntity getMyResume( @PutMapping(value = "/my-resume") public ResponseEntity putMyResume( @AuthMember Long memberId, - @RequestPart("images") List images, - @RequestPart("request") ResumePutRequest request + @RequestPart("images") List images +// @RequestPart("request") ResumePutRequest request ) throws IOException { - return ResponseEntity.ok(resumeService.putMyResume(memberId, images, request)); + return ResponseEntity.ok(resumeService.putMyResume(memberId, images)); } @DeleteMapping("/my-resume") diff --git a/src/main/java/capstone/facefriend/resume/service/ResumeService.java b/src/main/java/capstone/facefriend/resume/service/ResumeService.java index ecc2c5b4d6..c909d30754 100644 --- a/src/main/java/capstone/facefriend/resume/service/ResumeService.java +++ b/src/main/java/capstone/facefriend/resume/service/ResumeService.java @@ -39,12 +39,12 @@ public class ResumeService { // 정적 쿼리 public ResumePostPutResponse postMyResume( Long memberId, - List images, - ResumePostRequest request + List images +// ResumePostRequest request ) throws IOException { - validateCategories(request.categories()); - validateContent(request.content()); +// validateCategories(request.categories()); +// validateContent(request.content()); Member member = validateMemberHasResume(memberId); List resumeImagesS3url = bucketService.uploadResumeImages(images); @@ -52,8 +52,8 @@ public ResumePostPutResponse postMyResume( Resume resume = Resume.builder() .member(member) .resumeImageS3urls(resumeImagesS3url) - .categories(request.categories().stream().map(str -> Category.valueOf(str)).collect(Collectors.toSet())) - .content(request.content()) +// .categories(request.categories().stream().map(str -> Category.valueOf(str)).collect(Collectors.toSet())) +// .content(request.content()) .build(); resumeRepository.save(resume); @@ -116,12 +116,12 @@ public ResumeGetResponse getMyResume( @Transactional public ResumePostPutResponse putMyResume( Long memberId, - List images, - ResumePutRequest request + List images +// ResumePutRequest request ) throws IOException { - validateCategories(request.categories()); - validateContent(request.content()); +// validateCategories(request.categories()); +// validateContent(request.content()); Member me = findMemberById(memberId); Resume mine = findResumeByMember(me); // 영속 상태 @@ -129,8 +129,8 @@ public ResumePostPutResponse putMyResume( List resumeImageS3urls = bucketService.updateResumeImages(images, mine); mine.setResumeImageS3urls(resumeImageS3urls); // dirty check - mine.setCategories(request.categories().stream().map(str -> Category.valueOf(str)).collect(Collectors.toSet())); // // dirty check - mine.setContent(request.content()); // // dirty check +// mine.setCategories(request.categories().stream().map(str -> Category.valueOf(str)).collect(Collectors.toSet())); // // dirty check +// mine.setContent(request.content()); // // dirty check return new ResumePostPutResponse( mine.getId(),