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();