251118_01_ENH : 인트라넷 확장 초기 세팅 및 프로젝트, 사용자 조회 구현
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
package com.kri.intranet.extension.controller;
|
||||
|
||||
import com.kri.intranet.extension.dto.user.request.GetUserWithIdPwRequestDto;
|
||||
import com.kri.intranet.extension.dto.user.response.GetUserWithIdPwResponseDto;
|
||||
import com.kri.intranet.extension.service.UserService;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/api/v1/user")
|
||||
@RequiredArgsConstructor
|
||||
@Tag(name = "User", description = "사용자 조회 API")
|
||||
public class UserController {
|
||||
|
||||
private final UserService userService;
|
||||
|
||||
@Operation(
|
||||
summary = "사용자 정보 조회",
|
||||
description = "ID/PW로 사용자 정보 조회"
|
||||
)
|
||||
@PostMapping("search/login-info")
|
||||
public GetUserWithIdPwResponseDto getUserWithIdPw(
|
||||
@RequestBody GetUserWithIdPwRequestDto getUserWithIdPwRequestDto
|
||||
) {
|
||||
return userService.getUserWithIdPw(getUserWithIdPwRequestDto);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user