From 9cfea3584b1b37a50687f4cbb6949890fa78cf4b Mon Sep 17 00:00:00 2001 From: MinchoGreenT Date: Tue, 21 Nov 2023 22:51:45 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20=EC=9C=A0=EC=A0=80=20=EC=82=AD=EC=A0=9C?= =?UTF-8?q?=20=EC=8B=9C=20=EA=B2=8C=EC=8B=9C=EA=B8=80=EA=B3=BC=20=EC=B1=84?= =?UTF-8?q?=EC=86=8C=20=EC=A0=84=EB=B6=80=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../farmususer/community/CommunityServiceFeignClient.java | 2 +- .../server/farmususer/farm/FarmServiceFeignClient.java | 2 +- .../server/farmususer/user/service/UserService.java | 7 +------ 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/main/java/modernfarmer/server/farmususer/community/CommunityServiceFeignClient.java b/src/main/java/modernfarmer/server/farmususer/community/CommunityServiceFeignClient.java index 5973a2d..8046079 100644 --- a/src/main/java/modernfarmer/server/farmususer/community/CommunityServiceFeignClient.java +++ b/src/main/java/modernfarmer/server/farmususer/community/CommunityServiceFeignClient.java @@ -8,7 +8,7 @@ import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestParam; -@FeignClient(name = "community-service") +@FeignClient(url = "http://3.38.2.59:8082", name = "community-service") public interface CommunityServiceFeignClient { @DeleteMapping("/api/community/posting/all-posting/{userId}") diff --git a/src/main/java/modernfarmer/server/farmususer/farm/FarmServiceFeignClient.java b/src/main/java/modernfarmer/server/farmususer/farm/FarmServiceFeignClient.java index 7954bae..667dcf9 100644 --- a/src/main/java/modernfarmer/server/farmususer/farm/FarmServiceFeignClient.java +++ b/src/main/java/modernfarmer/server/farmususer/farm/FarmServiceFeignClient.java @@ -5,7 +5,7 @@ import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.PathVariable; -@FeignClient(name = "farm-service") +@FeignClient(url = "http://3.36.221.140:8081", name = "farm-service") public interface FarmServiceFeignClient { @DeleteMapping("/api/veggie/{userId}") diff --git a/src/main/java/modernfarmer/server/farmususer/user/service/UserService.java b/src/main/java/modernfarmer/server/farmususer/user/service/UserService.java index b75560e..be251bf 100644 --- a/src/main/java/modernfarmer/server/farmususer/user/service/UserService.java +++ b/src/main/java/modernfarmer/server/farmususer/user/service/UserService.java @@ -118,12 +118,7 @@ public BaseResponseDto deleteUser(Long userId){ userRepository.deleteUser(userId); communityServiceFeignClient.deleteAllPosting(userId); - // farmServiceFeignClient.deleteAllVeggies(userId); - - - - - + farmServiceFeignClient.deleteAllVeggies(userId); log.info("유저 계정 삭제 완료");