From a52b1c8a01586aa5e07146b2cc7bc4fccc7c8008 Mon Sep 17 00:00:00 2001 From: june-777 Date: Wed, 14 Aug 2024 10:36:44 +0900 Subject: [PATCH] =?UTF-8?q?[style]=20=EB=9D=BC=EC=9D=B8=20=ED=8F=AC?= =?UTF-8?q?=EB=A7=B7=ED=8C=85,=20import=20=EC=A0=95=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/camp/woowak/lab/customer/domain/CustomerValidator.java | 2 +- .../camp/woowak/lab/customer/service/SignUpCustomerService.java | 2 +- .../woowak/lab/payaccount/exception/PayAccountErrorCode.java | 2 +- .../camp/woowak/lab/web/api/customer/CustomerApiController.java | 2 +- .../camp/woowak/lab/web/api/store/StoreExceptionHandler.java | 2 +- .../web/resolver/session/SessionCustomerArgumentResolver.java | 1 - 6 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/main/java/camp/woowak/lab/customer/domain/CustomerValidator.java b/src/main/java/camp/woowak/lab/customer/domain/CustomerValidator.java index 118692fb..0ad33509 100644 --- a/src/main/java/camp/woowak/lab/customer/domain/CustomerValidator.java +++ b/src/main/java/camp/woowak/lab/customer/domain/CustomerValidator.java @@ -15,7 +15,7 @@ private CustomerValidator() { } public static void validateCreation(String name, String email, String password, String phone, - PayAccount payAccount) throws InvalidCreationException { + PayAccount payAccount) throws InvalidCreationException { validateName(name); validateEmail(email); validatePassword(password); diff --git a/src/main/java/camp/woowak/lab/customer/service/SignUpCustomerService.java b/src/main/java/camp/woowak/lab/customer/service/SignUpCustomerService.java index 3aa0c421..d43aad29 100644 --- a/src/main/java/camp/woowak/lab/customer/service/SignUpCustomerService.java +++ b/src/main/java/camp/woowak/lab/customer/service/SignUpCustomerService.java @@ -20,7 +20,7 @@ public class SignUpCustomerService { private final PasswordEncoder passwordEncoder; public SignUpCustomerService(CustomerRepository customerRepository, PayAccountRepository payAccountRepository, - PasswordEncoder passwordEncoder) { + PasswordEncoder passwordEncoder) { this.customerRepository = customerRepository; this.payAccountRepository = payAccountRepository; this.passwordEncoder = passwordEncoder; diff --git a/src/main/java/camp/woowak/lab/payaccount/exception/PayAccountErrorCode.java b/src/main/java/camp/woowak/lab/payaccount/exception/PayAccountErrorCode.java index 827ffeb4..75191ce5 100644 --- a/src/main/java/camp/woowak/lab/payaccount/exception/PayAccountErrorCode.java +++ b/src/main/java/camp/woowak/lab/payaccount/exception/PayAccountErrorCode.java @@ -7,7 +7,7 @@ public enum PayAccountErrorCode implements ErrorCode { INVALID_TRANSACTION_AMOUNT(HttpStatus.BAD_REQUEST, "a_1_1", "금액은 0보다 커야합니다."), DAILY_LIMIT_EXCEED(HttpStatus.BAD_REQUEST, "a_1_2", "일일 충전 한도 금액을 초과했습니다."), - INSUFFICIENT_BALANCE(HttpStatus.BAD_REQUEST,"a_1_3","금액이 부족합니다."), + INSUFFICIENT_BALANCE(HttpStatus.BAD_REQUEST, "a_1_3", "금액이 부족합니다."), ACCOUNT_NOT_FOUND(HttpStatus.NOT_FOUND, "a_1_4", "계좌를 찾을 수 없습니다."); private final int status; diff --git a/src/main/java/camp/woowak/lab/web/api/customer/CustomerApiController.java b/src/main/java/camp/woowak/lab/web/api/customer/CustomerApiController.java index 17397fcd..3de4a296 100644 --- a/src/main/java/camp/woowak/lab/web/api/customer/CustomerApiController.java +++ b/src/main/java/camp/woowak/lab/web/api/customer/CustomerApiController.java @@ -25,7 +25,7 @@ public CustomerApiController(SignUpCustomerService signUpCustomerService) { @PostMapping("/customers") public ResponseEntity> signUp(@Valid @RequestBody SignUpCustomerRequest request, - HttpServletResponse response) { + HttpServletResponse response) { SignUpCustomerCommand command = new SignUpCustomerCommand(request.name(), request.email(), request.password(), request.phone()); diff --git a/src/main/java/camp/woowak/lab/web/api/store/StoreExceptionHandler.java b/src/main/java/camp/woowak/lab/web/api/store/StoreExceptionHandler.java index ca2b86df..e0a9be19 100644 --- a/src/main/java/camp/woowak/lab/web/api/store/StoreExceptionHandler.java +++ b/src/main/java/camp/woowak/lab/web/api/store/StoreExceptionHandler.java @@ -17,5 +17,5 @@ public ResponseEntity handleException(StoreException exception) { log.warn(exception.getMessage(), exception); return new ResponseEntity<>("fail", HttpStatus.BAD_REQUEST); } - + } diff --git a/src/main/java/camp/woowak/lab/web/resolver/session/SessionCustomerArgumentResolver.java b/src/main/java/camp/woowak/lab/web/resolver/session/SessionCustomerArgumentResolver.java index 89448d2d..b6a28b43 100644 --- a/src/main/java/camp/woowak/lab/web/resolver/session/SessionCustomerArgumentResolver.java +++ b/src/main/java/camp/woowak/lab/web/resolver/session/SessionCustomerArgumentResolver.java @@ -12,7 +12,6 @@ import camp.woowak.lab.web.authentication.annotation.AuthenticationPrincipal; import jakarta.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpSession; -import lombok.extern.slf4j.Slf4j; @Component public class SessionCustomerArgumentResolver extends LoginMemberArgumentResolver {