-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from Mojacknong/feature_32/계정-삭제-api
Feature 32/계정 삭제 api
- Loading branch information
Showing
6 changed files
with
43 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/main/java/modernfarmer/server/farmususer/community/CommunityServiceFeignClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
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(url = "http://3.38.2.59:8082", name = "community-service") | ||
public interface CommunityServiceFeignClient { | ||
|
||
@DeleteMapping("/api/community/posting/all-posting/{userId}") | ||
void deleteAllPosting(@PathVariable("userId") Long userId); | ||
|
||
|
||
|
||
|
||
} |
14 changes: 14 additions & 0 deletions
14
src/main/java/modernfarmer/server/farmususer/farm/FarmServiceFeignClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package modernfarmer.server.farmususer.farm; | ||
|
||
|
||
import org.springframework.cloud.openfeign.FeignClient; | ||
import org.springframework.web.bind.annotation.DeleteMapping; | ||
import org.springframework.web.bind.annotation.PathVariable; | ||
|
||
@FeignClient(url = "http://3.36.221.140:8081", name = "farm-service") | ||
public interface FarmServiceFeignClient { | ||
|
||
@DeleteMapping("/api/veggie/{userId}") | ||
void deleteAllVeggies(@PathVariable("userId") Long userId); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters