251210_01_ENH : 검색어로만 프로젝트 검색 추가, 사용자 ID 있는 지 조회 추가
This commit is contained in:
@@ -1,15 +1,14 @@
|
||||
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.dto.user.UserBasicInfoDto;
|
||||
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;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/api/v1/user")
|
||||
@@ -20,14 +19,38 @@ public class UserController {
|
||||
private final UserService userService;
|
||||
|
||||
@Operation(
|
||||
summary = "사용자 정보 조회",
|
||||
description = "ID/PW로 사용자 정보 조회"
|
||||
summary = "사용자 정보 조회",
|
||||
description = "ID/PW로 사용자 정보 조회"
|
||||
)
|
||||
@PostMapping("search/login-info")
|
||||
public GetUserWithIdPwResponseDto getUserWithIdPw(
|
||||
@PostMapping("login-info")
|
||||
public UserBasicInfoDto getUserWithIdPw(
|
||||
@RequestBody GetUserWithIdPwRequestDto getUserWithIdPwRequestDto
|
||||
) {
|
||||
return userService.getUserWithIdPw(getUserWithIdPwRequestDto);
|
||||
}
|
||||
|
||||
}
|
||||
@Operation(
|
||||
summary = "사용자 리스트",
|
||||
description = "사용자 리스트 조회"
|
||||
)
|
||||
@GetMapping("list")
|
||||
public List<UserBasicInfoDto> getUserList(){ return userService.getUserList(); }
|
||||
|
||||
@Operation(
|
||||
summary = "ID 사용 여부 조회",
|
||||
description = "ID로 사용가능 여부 조회"
|
||||
)
|
||||
@GetMapping("check-user-id")
|
||||
public boolean checkUserId(@RequestParam String userId){
|
||||
return userService.checkUserId(userId);
|
||||
}
|
||||
|
||||
@Operation(
|
||||
summary = "사용자 ID 목록 조회",
|
||||
description = "사용자 ID 목록 조회"
|
||||
)
|
||||
@GetMapping("user-id-list")
|
||||
public List<String> getUserIdArray(){
|
||||
return userService.getUserIdArray();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user