|
1 | 1 | package com.somemore.center.controller; |
2 | 2 |
|
3 | 3 | import com.somemore.auth.signout.usecase.SignOutUseCase; |
| 4 | +import com.somemore.center.dto.request.CenterSignRequestDto; |
4 | 5 | import com.somemore.global.common.response.ApiResponse; |
| 6 | +import io.swagger.v3.oas.annotations.Parameter; |
5 | 7 | import io.swagger.v3.oas.annotations.tags.Tag; |
6 | 8 | import jakarta.servlet.http.HttpServletResponse; |
7 | 9 | import lombok.RequiredArgsConstructor; |
8 | 10 | import lombok.extern.slf4j.Slf4j; |
9 | 11 | import org.springframework.security.core.annotation.AuthenticationPrincipal; |
10 | 12 | import org.springframework.web.bind.annotation.PostMapping; |
| 13 | +import org.springframework.web.bind.annotation.RequestBody; |
11 | 14 | import org.springframework.web.bind.annotation.RequestMapping; |
| 15 | +import org.springframework.web.bind.annotation.RequestParam; |
12 | 16 | import org.springframework.web.bind.annotation.RestController; |
13 | 17 |
|
14 | 18 | @RestController |
15 | 19 | @Slf4j |
16 | 20 | @RequiredArgsConstructor |
17 | 21 | @RequestMapping("/api/center") |
18 | | -@Tag(name = "center Sign API", description = "기관 로그아웃") |
| 22 | +@Tag(name = "center Sign API", description = "기관 로그인, 로그아웃") |
19 | 23 | public class CenterSignController { |
20 | 24 |
|
21 | 25 | private final SignOutUseCase signOutUseCase; |
22 | 26 |
|
| 27 | + @PostMapping("/sign-in") |
| 28 | + public ApiResponse<String> signIn( |
| 29 | + @RequestBody CenterSignRequestDto requestDto |
| 30 | + ) { |
| 31 | + |
| 32 | + return ApiResponse.ok("로그인되었습니다."); |
| 33 | + } |
| 34 | + |
23 | 35 | @PostMapping("/sign-out") |
24 | 36 | public ApiResponse<String> signOut( |
25 | 37 | HttpServletResponse response, |
|
0 commit comments