From 3be0e00ea9ed445108398285b726dfe08e85c5e9 Mon Sep 17 00:00:00 2001 From: LeeJaehyung <540900@naver.com> Date: Thu, 5 Dec 2024 15:08:04 +0900 Subject: [PATCH] =?UTF-8?q?Refactor:=20#218=20genti-api=20-=20user=20?= =?UTF-8?q?=EA=B4=80=EB=A0=A8=20API=20=EB=B0=8F=20=EA=B4=80=EB=A0=A8=20?= =?UTF-8?q?=EB=A9=94=EC=84=9C=EB=93=9C=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/gt/genti/user/api/UserApi.java | 10 ---------- .../com/gt/genti/user/controller/UserController.java | 7 ------- .../java/com/gt/genti/user/service/UserService.java | 6 ------ 3 files changed, 23 deletions(-) diff --git a/genti-api/src/main/java/com/gt/genti/user/api/UserApi.java b/genti-api/src/main/java/com/gt/genti/user/api/UserApi.java index d20a9400..af89bdf2 100644 --- a/genti-api/src/main/java/com/gt/genti/user/api/UserApi.java +++ b/genti-api/src/main/java/com/gt/genti/user/api/UserApi.java @@ -55,16 +55,6 @@ ResponseEntity> signUp( }) ResponseEntity> logout(@AuthUser Long userId); - @Operation(summary = "회원 복구", description = "회원탈퇴 취소 처리") - @EnumResponses(value = { - @EnumResponse(ResponseCode.OK), - @EnumResponse(ResponseCode.UserNotFound), - @EnumResponse(ResponseCode.CannotRestoreUser) - - }) - ResponseEntity> restoreSoftDeletedUser( - @AuthUser Long userId); - @Operation(summary = "회원 탈퇴", description = "사용자 정보 및 관련 정보를 모두 삭제(복구 불가)") @EnumResponses(value = { @EnumResponse(ResponseCode.OK) diff --git a/genti-api/src/main/java/com/gt/genti/user/controller/UserController.java b/genti-api/src/main/java/com/gt/genti/user/controller/UserController.java index 33be240b..1e956804 100644 --- a/genti-api/src/main/java/com/gt/genti/user/controller/UserController.java +++ b/genti-api/src/main/java/com/gt/genti/user/controller/UserController.java @@ -79,13 +79,6 @@ public ResponseEntity> delete( return GentiResponse.success(userService.delete(userId)); } - @Deprecated - @PutMapping("/api/v1/users/restore") - public ResponseEntity> restoreSoftDeletedUser( - @AuthUser Long userId) { - return GentiResponse.success(userService.restoreSoftDeletedUser(userId)); - } - @GetMapping("/api/v1/users/pictures/my") public ResponseEntity>> getAllMyGeneratedPicture( @AuthUser Long userId, diff --git a/genti-api/src/main/java/com/gt/genti/user/service/UserService.java b/genti-api/src/main/java/com/gt/genti/user/service/UserService.java index 4b8a197e..9a9fbebe 100644 --- a/genti-api/src/main/java/com/gt/genti/user/service/UserService.java +++ b/genti-api/src/main/java/com/gt/genti/user/service/UserService.java @@ -111,12 +111,6 @@ public Boolean deleteUserSoft(Long userId) { return true; } - public Boolean restoreSoftDeletedUser(Long userId) { - User foundUser = getUserByUserId(userId); - foundUser.restore(); - return true; - } - public Boolean delete(Long userId) { User foundUser = getUserByUserId(userId); OauthPlatform oauthPlatform = foundUser.getLastLoginOauthPlatform();