From fa90b8169ddc629de99e9e36e8ea3b064948bf5b Mon Sep 17 00:00:00 2001 From: minaamim Date: Thu, 21 Dec 2023 17:46:38 +0900 Subject: [PATCH] fix: update success code --- .../com/nexters/buyornot/global/common/codes/SuccessCode.java | 2 +- .../com/nexters/buyornot/module/auth/api/AuthController.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/nexters/buyornot/global/common/codes/SuccessCode.java b/src/main/java/com/nexters/buyornot/global/common/codes/SuccessCode.java index e129efa..013a430 100644 --- a/src/main/java/com/nexters/buyornot/global/common/codes/SuccessCode.java +++ b/src/main/java/com/nexters/buyornot/global/common/codes/SuccessCode.java @@ -22,13 +22,13 @@ public enum SuccessCode { LOGIN_SUCCESS(200, "200", "LOGIN SUCCESS"), LOGOUT_SUCCESS(200, "200", "LOGOUT SUCCESS"), SIGNOUT_SUCCESS(200, "200", "SIGN OUT SUCCESS"), + REISSUE_SUCCESS(200, "200", "REISSUE SUCCESS"), // 삽입 성공 코드 (HTTP Response: 201 Created) INSERT_SUCCESS(201, "201", "INSERT SUCCESS"), // 수정 성공 코드 (HTTP Response: 201 Created) UPDATE_SUCCESS(204, "204", "UPDATE SUCCESS"), ; // End - /** * ******************************* Success Code Constructor *************************************** */ diff --git a/src/main/java/com/nexters/buyornot/module/auth/api/AuthController.java b/src/main/java/com/nexters/buyornot/module/auth/api/AuthController.java index 6dbb9fe..3f7b082 100644 --- a/src/main/java/com/nexters/buyornot/module/auth/api/AuthController.java +++ b/src/main/java/com/nexters/buyornot/module/auth/api/AuthController.java @@ -32,7 +32,7 @@ public ResponseEntity> loginKakao(@RequestBody KakaoLogi @Operation(summary = "reissue refresh token") @PostMapping("/refresh") public ResponseEntity> reissue(@Valid @RequestBody ReissueTokenReq request) { - return ApiResponse.success(SuccessCode.UPDATE_SUCCESS, tokenService.reissueToken(request)); + return ApiResponse.success(SuccessCode.REISSUE_SUCCESS, tokenService.reissueToken(request)); } @Operation(summary = "로그아웃")