Skip to content

Commit

Permalink
chore: login log를 추가한다.
Browse files Browse the repository at this point in the history
  • Loading branch information
rlarltj committed Sep 29, 2024
1 parent 560ec59 commit 855d7be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.Valid;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.web.bind.annotation.*;

@Tag(name = "1. [유저]")
@RequestMapping("/api/v1/users")
@RequiredArgsConstructor
@RestController
@Slf4j
public class UserController {

private final UserFacadeService userFacadeService;
Expand All @@ -27,6 +29,7 @@ public class UserController {
public LoginSuccessResponse login(
@RequestBody @Valid LoginRequest loginRequest
) {
log.info("login request: {}", loginRequest);
return userFacadeService.login(loginRequest);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

import jakarta.validation.constraints.NotBlank;
import lombok.Getter;
import lombok.ToString;

@ToString
@Getter
public class LoginRequest {
@NotBlank
Expand Down

0 comments on commit 855d7be

Please sign in to comment.