From 22fa9c91ceb84adb469acdd0749e35afae0733f2 Mon Sep 17 00:00:00 2001 From: chanwoo7 Date: Thu, 22 Aug 2024 22:40:36 +0900 Subject: [PATCH] =?UTF-8?q?[feat]=20=EC=B9=B4=EC=B9=B4=EC=98=A4=20?= =?UTF-8?q?=EB=A1=9C=EA=B7=B8=EC=9D=B8=20swagger=20=EC=9D=91=EB=8B=B5=20?= =?UTF-8?q?=ED=98=95=EC=8B=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../book/backend/domain/auth/controller/AuthController.java | 4 ++-- .../book/backend/domain/auth/dto/LoginSuccessResponseDto.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/book/backend/domain/auth/controller/AuthController.java b/src/main/java/com/book/backend/domain/auth/controller/AuthController.java index 1181753c..d0d0c906 100644 --- a/src/main/java/com/book/backend/domain/auth/controller/AuthController.java +++ b/src/main/java/com/book/backend/domain/auth/controller/AuthController.java @@ -80,8 +80,8 @@ public ResponseEntity deleteAccount() { parameters = { @Parameter(name = "authorizationCode", description = "인가 코드") }, - responses = {@ApiResponse(responseCode = "200", content = @Content(schema = @Schema(implementation = UserDto.class)), - description = UserDto.description)}) + responses = {@ApiResponse(responseCode = "200", content = @Content(schema = @Schema(implementation = LoginSuccessResponseDto.class)), + description = LoginSuccessResponseDto.description)}) @PostMapping("/kakaoLogin") public ResponseEntity kakaoLogin(String authorizationCode) { LoginSuccessResponseDto loginSuccessResponseDto = kakaoService.kakaoLogin(authorizationCode); diff --git a/src/main/java/com/book/backend/domain/auth/dto/LoginSuccessResponseDto.java b/src/main/java/com/book/backend/domain/auth/dto/LoginSuccessResponseDto.java index 1dfe530a..451bc638 100644 --- a/src/main/java/com/book/backend/domain/auth/dto/LoginSuccessResponseDto.java +++ b/src/main/java/com/book/backend/domain/auth/dto/LoginSuccessResponseDto.java @@ -14,7 +14,7 @@ public class LoginSuccessResponseDto { public static final String description = "userId : 유저 아이디 | " + - "isNewUser : 신규 회원 여부 (소셜 로그인 시 할당됨)" + + "isNewUser : 신규 회원 여부 (소셜 로그인 시 할당됨) | " + "accessToken : 액세스 토큰 | " + "refreshToken : 리프레쉬 토큰"; }