diff --git a/src/main/java/com/project/qvick/domain/auth/client/api/AuthController.java b/src/main/java/com/project/qvick/domain/auth/client/api/AuthController.java index e89d4162..a509f4e7 100644 --- a/src/main/java/com/project/qvick/domain/auth/client/api/AuthController.java +++ b/src/main/java/com/project/qvick/domain/auth/client/api/AuthController.java @@ -1,6 +1,6 @@ package com.project.qvick.domain.auth.client.api; -import com.project.qvick.domain.auth.client.dto.request.AuthenticationRequest; +import com.project.qvick.domain.auth.client.dto.request.FirebaseRequest; import com.project.qvick.domain.auth.client.dto.request.RefreshTokenRequest; import com.project.qvick.domain.auth.client.dto.request.SignInRequest; import com.project.qvick.domain.auth.client.dto.request.SignUpRequest; @@ -54,7 +54,7 @@ public RefreshTokenResponse refresh(RefreshTokenRequest request){ @PostMapping("/firebase") @Operation(summary = "firebase 인증", description = "firebase 인증 서비스") - public void firebase(AuthenticationRequest request){ + public void firebase(FirebaseRequest request){ authService.firebase(request); } diff --git a/src/main/java/com/project/qvick/domain/auth/client/dto/request/AuthenticationRequest.java b/src/main/java/com/project/qvick/domain/auth/client/dto/request/FirebaseRequest.java similarity index 86% rename from src/main/java/com/project/qvick/domain/auth/client/dto/request/AuthenticationRequest.java rename to src/main/java/com/project/qvick/domain/auth/client/dto/request/FirebaseRequest.java index 1300a0ff..eae8bdfa 100644 --- a/src/main/java/com/project/qvick/domain/auth/client/dto/request/AuthenticationRequest.java +++ b/src/main/java/com/project/qvick/domain/auth/client/dto/request/FirebaseRequest.java @@ -6,7 +6,7 @@ @Setter @Getter -public class AuthenticationRequest { +public class FirebaseRequest { @Schema(description = "FCM Token") private String fcmToken; diff --git a/src/main/java/com/project/qvick/domain/auth/service/AuthService.java b/src/main/java/com/project/qvick/domain/auth/service/AuthService.java index 0f949863..a8444d12 100644 --- a/src/main/java/com/project/qvick/domain/auth/service/AuthService.java +++ b/src/main/java/com/project/qvick/domain/auth/service/AuthService.java @@ -1,6 +1,6 @@ package com.project.qvick.domain.auth.service; -import com.project.qvick.domain.auth.client.dto.request.AuthenticationRequest; +import com.project.qvick.domain.auth.client.dto.request.FirebaseRequest; import com.project.qvick.domain.auth.client.dto.request.SignInRequest; import com.project.qvick.domain.auth.client.dto.request.SignUpRequest; import com.project.qvick.domain.auth.client.dto.response.JsonWebTokenResponse; @@ -17,6 +17,6 @@ public interface AuthService { RefreshTokenResponse refresh(String token); - void firebase(AuthenticationRequest request); + void firebase(FirebaseRequest request); } diff --git a/src/main/java/com/project/qvick/domain/auth/service/AuthServiceImpl.java b/src/main/java/com/project/qvick/domain/auth/service/AuthServiceImpl.java index 01aadf45..26ba421a 100644 --- a/src/main/java/com/project/qvick/domain/auth/service/AuthServiceImpl.java +++ b/src/main/java/com/project/qvick/domain/auth/service/AuthServiceImpl.java @@ -1,6 +1,6 @@ package com.project.qvick.domain.auth.service; -import com.project.qvick.domain.auth.client.dto.request.AuthenticationRequest; +import com.project.qvick.domain.auth.client.dto.request.FirebaseRequest; import com.project.qvick.domain.auth.client.dto.request.SignInRequest; import com.project.qvick.domain.auth.client.dto.request.SignUpRequest; import com.project.qvick.domain.auth.client.dto.response.JsonWebTokenResponse; @@ -80,7 +80,7 @@ public RefreshTokenResponse refresh(String token) { } @Override - public void firebase(AuthenticationRequest request){ + public void firebase(FirebaseRequest request){ User user = userUtil.findUser(); if(StringUtils.hasText(request.getFcmToken())){ firebaseNotificationService.saveToken(user.getEmail(), request.getFcmToken());