diff --git a/src/main/java/leets/weeth/domain/user/application/usecase/UserUseCase.java b/src/main/java/leets/weeth/domain/user/application/usecase/UserUseCase.java index 40c46610..304f9770 100644 --- a/src/main/java/leets/weeth/domain/user/application/usecase/UserUseCase.java +++ b/src/main/java/leets/weeth/domain/user/application/usecase/UserUseCase.java @@ -34,7 +34,7 @@ public interface UserUseCase { void apply(SignUp dto); - void register(Register dto); + void socialRegister(Register dto); JwtDto refresh(String refreshToken); diff --git a/src/main/java/leets/weeth/domain/user/application/usecase/UserUseCaseImpl.java b/src/main/java/leets/weeth/domain/user/application/usecase/UserUseCaseImpl.java index 7919e7df..15c6b321 100644 --- a/src/main/java/leets/weeth/domain/user/application/usecase/UserUseCaseImpl.java +++ b/src/main/java/leets/weeth/domain/user/application/usecase/UserUseCaseImpl.java @@ -144,7 +144,7 @@ public void apply(SignUp dto) { @Override @Transactional - public void register(Register dto) { + public void socialRegister(Register dto) { validate(dto); userSaveService.save(mapper.from(dto)); } diff --git a/src/main/java/leets/weeth/domain/user/presentation/UserController.java b/src/main/java/leets/weeth/domain/user/presentation/UserController.java index 235f7196..640c016e 100644 --- a/src/main/java/leets/weeth/domain/user/presentation/UserController.java +++ b/src/main/java/leets/weeth/domain/user/presentation/UserController.java @@ -58,7 +58,7 @@ public CommonResponse apply(@RequestBody @Valid SignUp dto) { @PostMapping("/kakao/register") @Operation(summary = "소셜 회원가입") public CommonResponse register(@RequestBody @Valid Register dto) { - userUseCase.register(dto); + userUseCase.socialRegister(dto); return CommonResponse.createSuccess(USER_APPLY_SUCCESS.getMessage()); }