From 9f3cd396cb459de85814742b6d78a45cea0e8e3e Mon Sep 17 00:00:00 2001 From: xhaktmchl Date: Thu, 24 Nov 2022 17:27:44 +0900 Subject: [PATCH] =?UTF-8?q?#5=20feat:=20=EC=95=A0=ED=94=8C=20=ED=9A=8C?= =?UTF-8?q?=EC=9B=90=EA=B0=80=EC=9E=85(signUpApple)=20res=ED=98=95?= =?UTF-8?q?=ED=83=9C=EB=A5=BC=20ApplicationResponse=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../server/applelogin/controller/AppleController.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/server/src/main/java/com/yogit/server/applelogin/controller/AppleController.java b/server/src/main/java/com/yogit/server/applelogin/controller/AppleController.java index 260ff0d..dba0154 100644 --- a/server/src/main/java/com/yogit/server/applelogin/controller/AppleController.java +++ b/server/src/main/java/com/yogit/server/applelogin/controller/AppleController.java @@ -4,6 +4,7 @@ import com.yogit.server.applelogin.model.ServicesResponse; import com.yogit.server.applelogin.model.TokenResponse; import com.yogit.server.applelogin.service.AppleService; +import com.yogit.server.global.dto.ApplicationResponse; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; @@ -29,14 +30,14 @@ public class AppleController { */ @PostMapping(value = "/sign-up/apple") @ResponseBody - public TokenResponse signUpApple(@RequestBody ServicesResponse servicesResponse) throws NoSuchAlgorithmException { + public ApplicationResponse signUpApple(@RequestBody ServicesResponse servicesResponse) throws NoSuchAlgorithmException { if (servicesResponse == null) { // TODO 예외처리 System.out.println("요청 값이 없습니다."); return null; } - - return appleService.requestCodeValidations(servicesResponse, null); + TokenResponse tokenResponse = appleService.requestCodeValidations(servicesResponse, null); + return ApplicationResponse.create("애플 로그인에 성공했습니다.",tokenResponse); } /**