Skip to content

Commit

Permalink
[fix] 유레카 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryeolee committed Nov 20, 2023
1 parent 6ee84f3 commit 3060bed
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
package modernfarmer.server.farmususer.community;


import modernfarmer.server.farmususer.user.dto.response.BaseResponseDto;
import modernfarmer.server.farmususer.user.entity.BaseEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "community-service", url = "http://3.38.2.59:8082")
@FeignClient(name = "community-service")
public interface CommunityServiceFeignClient {

@DeleteMapping("/api/community/posting/all-posting")
Void deleteAllPosting(Long userId);
@DeleteMapping("/api/community/posting/all-posting/{userId}")
void deleteAllPosting(@PathVariable("userId") Long userId);



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "farm-service", url = "http://3.36.221.140:8081")
@FeignClient(name = "farm-service")
public interface FarmServiceFeignClient {

@DeleteMapping("/api/veggie/{userId}")
Void deleteAllFarm(@PathVariable("userId") Long userId);
void deleteAllVeggies(@PathVariable("userId") Long userId);

}
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public BaseResponseDto<Void> deleteUser(Long userId){

userRepository.deleteUser(userId);
communityServiceFeignClient.deleteAllPosting(userId);
farmServiceFeignClient.deleteAllFarm(userId);
farmServiceFeignClient.deleteAllVeggies(userId);



Expand Down

0 comments on commit 3060bed

Please sign in to comment.