Skip to content

Commit

Permalink
[style] 라인 포맷팅, import 정리
Browse files Browse the repository at this point in the history
  • Loading branch information
june-777 committed Aug 14, 2024
1 parent a76a39c commit a52b1c8
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public CustomerApiController(SignUpCustomerService signUpCustomerService) {

@PostMapping("/customers")
public ResponseEntity<APIResponse<SignUpCustomerResponse>> signUp(@Valid @RequestBody SignUpCustomerRequest request,
HttpServletResponse response) {
HttpServletResponse response) {
SignUpCustomerCommand command =
new SignUpCustomerCommand(request.name(), request.email(), request.password(), request.phone());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ public ResponseEntity<?> handleException(StoreException exception) {
log.warn(exception.getMessage(), exception);
return new ResponseEntity<>("fail", HttpStatus.BAD_REQUEST);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a52b1c8

Please sign in to comment.