Skip to content

Commit 67ac72d

Browse files
authored
[Style] 필드 정렬순서 재지정 (#167)
1 parent 60066d6 commit 67ac72d

File tree

73 files changed

+528
-454
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+528
-454
lines changed

src/main/java/org/codequistify/master/application/account/controller/AuthenticationController.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,13 @@
4747
public class AuthenticationController {
4848

4949
private static final Logger logger = LoggerFactory.getLogger(AuthenticationController.class);
50-
private final SocialSignHandlerMap handlerMap;
5150
private final AccountService accountService;
5251
private final EmailVerificationService emailVerificationService;
52+
private final SocialSignHandlerMap handlerMap;
5353
private final PlayerQueryService playerQueryService;
54-
55-
private final TokenProvider tokenProvider;
5654
private final TokenCookieProvider tokenCookieProvider;
5755
private final TokenGenerator tokenGenerator;
56+
private final TokenProvider tokenProvider;
5857

5958
@GetMapping("/{provider}/url")
6059
@Operation(summary = "소셜 로그인 URL 발급", description = "구글/카카오/네이버/깃허브 로그인 URL을 반환")

src/main/java/org/codequistify/master/application/account/controller/EmailVerificationController.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package org.codequistify.master.application.account.controller;
22

33
import lombok.RequiredArgsConstructor;
4-
import org.codequistify.master.core.domain.account.model.EmailVerificationType;
54
import org.codequistify.master.application.account.service.EmailVerificationService;
5+
import org.codequistify.master.core.domain.account.model.EmailVerificationType;
66
import org.codequistify.master.global.aspect.LogMonitoring;
77
import org.springframework.stereotype.Controller;
88
import org.springframework.ui.Model;
@@ -16,9 +16,13 @@
1616
@RequiredArgsConstructor
1717
public class EmailVerificationController {
1818
private final EmailVerificationService emailVerificationService;
19+
1920
@GetMapping("home/auth/email/verify")
2021
@LogMonitoring
21-
public String verifyMail(@RequestParam String email, @RequestParam String code, @RequestParam EmailVerificationType type, Model model) {
22+
public String verifyMail(@RequestParam String email,
23+
@RequestParam String code,
24+
@RequestParam EmailVerificationType type,
25+
Model model) {
2226
if (email.isBlank() || code.isBlank() || type == null) {
2327
return "redirect:/home/failure";
2428
}

src/main/java/org/codequistify/master/application/account/service/AccountService.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,13 @@
3838
@Service
3939
@RequiredArgsConstructor
4040
public class AccountService {
41-
private final PlayerQueryService playerQueryService;
42-
private final PlayerProfileService playerProfileService;
41+
private final Logger logger = LoggerFactory.getLogger(AccountService.class);
42+
private final PlayerJpaRepository playerJpaRepository;
4343
private final PlayerPasswordManager playerPasswordManager;
44+
private final PlayerProfileService playerProfileService;
45+
private final PlayerQueryService playerQueryService;
4446
private final PlayerValidator playerValidator;
4547
private final TokenProvider tokenProvider;
46-
private final PlayerJpaRepository playerJpaRepository;
47-
48-
private final Logger logger = LoggerFactory.getLogger(AccountService.class);
4948

5049
@Transactional
5150
@LogMonitoring

src/main/java/org/codequistify/master/application/account/service/EmailVerificationService.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,12 @@
3030
@RequiredArgsConstructor
3131
public class EmailVerificationService {
3232

33-
private final EmailVerificationRepository emailVerificationRepository;
34-
private final EmailVerificationPolicyHandler policyHandler;
33+
private final EmailVerificationCodeManager codeManager;
3534
private final EmailMessageFactory emailMessageFactory;
3635
private final EmailSender emailSender;
37-
private final EmailVerificationCodeManager codeManager;
36+
private final EmailVerificationRepository emailVerificationRepository;
3837
private final Logger logger = LoggerFactory.getLogger(EmailVerificationService.class);
39-
38+
private final EmailVerificationPolicyHandler policyHandler;
4039
@Value("${mail.secret}")
4140
private String mailSecret;
4241

src/main/java/org/codequistify/master/application/account/service/GithubSocialSignService.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
package org.codequistify.master.application.account.service;
22

33
import lombok.RequiredArgsConstructor;
4-
import org.codequistify.master.application.account.vo.*;
4+
import org.codequistify.master.application.account.vo.OAuthProfile;
5+
import org.codequistify.master.application.account.vo.OAuthResource;
6+
import org.codequistify.master.application.account.vo.OAuthToken;
7+
import org.codequistify.master.application.account.vo.ResourceOfGithub;
58
import org.codequistify.master.application.exception.ApplicationException;
69
import org.codequistify.master.core.domain.player.model.OAuthType;
710
import org.codequistify.master.core.domain.player.model.Player;
@@ -28,10 +31,9 @@ public class GithubSocialSignService implements SocialSignService {
2831

2932
private static final String LOGIN_URL_TEMPLATE =
3033
"https://github.com/login/oauth/authorize?client_id=%s&redirect_uri=%s&response_type=code&state=%s";
31-
32-
private final RestTemplate restTemplate;
3334
private final OAuthKey oAuthKey;
3435
private final PlayerRepository playerRepository;
36+
private final RestTemplate restTemplate;
3537

3638
@Override
3739
public String getSocialLogInURL() {

src/main/java/org/codequistify/master/application/account/service/GoogleSocialSignService.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,9 @@ public class GoogleSocialSignService implements SocialSignService {
3030

3131
private static final String LOGIN_URL_TEMPLATE =
3232
"https://accounts.google.com/o/oauth2/auth?client_id=%s&redirect_uri=%s&response_type=code&scope=email%%20profile";
33-
34-
private final RestTemplate restTemplate;
3533
private final OAuthKey oAuthKey;
3634
private final PlayerRepository playerRepository;
35+
private final RestTemplate restTemplate;
3736

3837
@Override
3938
public String getSocialLogInURL() {

src/main/java/org/codequistify/master/application/account/service/KakaoSocialSignService.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,9 @@ public class KakaoSocialSignService implements SocialSignService {
3131

3232
private static final String LOGIN_URL_TEMPLATE =
3333
"https://kauth.kakao.com/oauth/authorize?response_type=code&client_id=%s&redirect_uri=%s";
34-
35-
private final RestTemplate restTemplate;
3634
private final OAuthKey oAuthKey;
3735
private final PlayerRepository playerRepository;
36+
private final RestTemplate restTemplate;
3837

3938
/**
4039
* 카카오 소셜 로그인 주소 반환

src/main/java/org/codequistify/master/application/account/service/NaverSocialSignService.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
package org.codequistify.master.application.account.service;
22

33
import lombok.RequiredArgsConstructor;
4-
import org.codequistify.master.application.account.vo.*;
4+
import org.codequistify.master.application.account.vo.OAuthProfile;
5+
import org.codequistify.master.application.account.vo.OAuthResource;
6+
import org.codequistify.master.application.account.vo.OAuthToken;
7+
import org.codequistify.master.application.account.vo.ResourceOfNaver;
58
import org.codequistify.master.application.exception.ApplicationException;
69
import org.codequistify.master.core.domain.player.model.OAuthType;
710
import org.codequistify.master.core.domain.player.model.Player;
@@ -28,10 +31,9 @@ public class NaverSocialSignService implements SocialSignService {
2831

2932
private static final String LOGIN_URL_TEMPLATE =
3033
"https://nid.naver.com/oauth2.0/authorize?client_id=%s&redirect_uri=%s&response_type=code&state=%s";
31-
32-
private final RestTemplate restTemplate;
33-
private final PlayerRepository playerRepository;
3434
private final OAuthKey oAuthKey;
35+
private final PlayerRepository playerRepository;
36+
private final RestTemplate restTemplate;
3537

3638
/**
3739
* 네이버 소셜 로그인 URL 반환

src/main/java/org/codequistify/master/application/account/service/SocialSignService.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55

66
public interface SocialSignService {
77
String getSocialLogInURL();
8+
89
Player socialLogIn(OAuthProfile oAuthProfile);
10+
911
Player socialSignUp(OAuthProfile oAuthProfile);
1012

1113
OAuthProfile getOAuthProfile(String code);

src/main/java/org/codequistify/master/application/account/strategy/EmailVerificationPolicy.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44

55
public interface EmailVerificationPolicy {
66
boolean supports(EmailVerificationType type);
7+
78
void validate(String email);
89
}

0 commit comments

Comments
 (0)