|
1 |
| -package com.app.toaster.service.auth; |
| 1 | +package com.app.toaster.auth.service; |
2 | 2 |
|
3 | 3 | import java.io.IOException;
|
4 |
| -import java.time.LocalDateTime; |
5 | 4 |
|
6 | 5 | import org.springframework.beans.factory.annotation.Value;
|
7 | 6 | import org.springframework.stereotype.Service;
|
8 | 7 | import org.springframework.transaction.annotation.Transactional;
|
9 |
| -import org.springframework.web.client.RestTemplate; |
10 |
| -import org.springframework.web.context.request.WebRequest; |
11 | 8 |
|
12 | 9 |
|
13 |
| -import com.app.toaster.config.jwt.JwtService; |
14 |
| -import com.app.toaster.controller.request.auth.SignInRequestDto; |
15 |
| -import com.app.toaster.controller.response.auth.SignInResponseDto; |
16 |
| -import com.app.toaster.controller.response.auth.TokenHealthDto; |
17 |
| -import com.app.toaster.controller.response.auth.TokenResponseDto; |
18 |
| -import com.app.toaster.domain.SocialType; |
19 |
| -import com.app.toaster.domain.User; |
| 10 | +import com.app.toaster.common.config.jwt.JwtService; |
| 11 | +import com.app.toaster.auth.controller.request.SignInRequestDto; |
| 12 | +import com.app.toaster.auth.controller.response.SignInResponseDto; |
| 13 | +import com.app.toaster.auth.controller.response.TokenHealthDto; |
| 14 | +import com.app.toaster.auth.controller.response.TokenResponseDto; |
| 15 | +import com.app.toaster.user.domain.SocialType; |
| 16 | +import com.app.toaster.user.domain.User; |
20 | 17 | import com.app.toaster.exception.Error;
|
21 |
| -import com.app.toaster.exception.Success; |
22 | 18 | import com.app.toaster.exception.model.CustomException;
|
23 | 19 | import com.app.toaster.exception.model.NotFoundException;
|
24 | 20 | import com.app.toaster.exception.model.UnprocessableEntityException;
|
25 |
| -import com.app.toaster.external.client.discord.DiscordMessage; |
26 | 21 | import com.app.toaster.external.client.discord.DiscordMessageProvider;
|
27 | 22 | import com.app.toaster.external.client.discord.NotificationDto;
|
28 | 23 | import com.app.toaster.external.client.discord.NotificationType;
|
29 | 24 | import com.app.toaster.external.client.slack.SlackApi;
|
30 |
| -import com.app.toaster.infrastructure.CategoryRepository; |
31 |
| -import com.app.toaster.infrastructure.TimerRepository; |
| 25 | +import com.app.toaster.category.infrastructure.CategoryRepository; |
| 26 | +import com.app.toaster.timer.infrastructure.TimerRepository; |
32 | 27 | import com.app.toaster.toast.infrastructure.ToastRepository;
|
33 |
| -import com.app.toaster.infrastructure.UserRepository; |
| 28 | +import com.app.toaster.user.infrastructure.UserRepository; |
34 | 29 | import com.app.toaster.popup.infrastructure.PopupManagerRepository;
|
35 |
| -import com.app.toaster.service.auth.apple.AppleSignInService; |
36 |
| -import com.app.toaster.service.auth.kakao.KakaoSignInService; |
37 |
| -import com.app.toaster.service.auth.kakao.LoginResult; |
| 30 | +import com.app.toaster.auth.service.apple.AppleSignInService; |
| 31 | +import com.app.toaster.auth.service.kakao.KakaoSignInService; |
| 32 | +import com.app.toaster.auth.service.kakao.LoginResult; |
38 | 33 | import com.app.toaster.toast.service.ToastService;
|
39 | 34 |
|
40 | 35 | import lombok.RequiredArgsConstructor;
|
|
0 commit comments