-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLoginController.java
More file actions
40 lines (32 loc) · 1.31 KB
/
LoginController.java
File metadata and controls
40 lines (32 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package com.example.smartair.controller.userController;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RestController;
@Tag(name = "로그인", description = "로그인 관련 API")
@RestController
@Slf4j
@AllArgsConstructor
public class LoginController {
// @Operation(
// summary = "로그인",
// description = "이메일과 비밀번호로 로그인하여 액세스 토큰과 리프레시 토큰을 받습니다.",
// responses = {
// @ApiResponse(
// responseCode = "200",
// description = "로그인 성공",
// content = @Content(
// schema = @Schema(implementation = TokenDto.class)
// )
// )
// }
// )
// @PostMapping("/login")
// public ResponseEntity<TokenDto> login(@RequestBody LoginDTO loginRequestDto) {
// TokenDto tokenDto = loginService.login(loginRequestDto);
// // 응답 본문에 TokenDto를 직접 반환
// return ResponseEntity.ok()
// .contentType(MediaType.APPLICATION_JSON)
// .body(tokenDto);
// }
}