251222_01_DOC : 중괄호 스타일 통일
This commit is contained in:
@@ -22,8 +22,8 @@ mybatis:
|
|||||||
kri:
|
kri:
|
||||||
auth:
|
auth:
|
||||||
apikey:
|
apikey:
|
||||||
enabled: true # API Key 인증 사용 여부
|
|
||||||
header-name: "X-API-Key" # API Key 헤더
|
header-name: "X-API-Key" # API Key 헤더
|
||||||
|
enabled: true # API Key 인증 사용 여부
|
||||||
service-code: intranet-extension
|
service-code: intranet-extension
|
||||||
preload-on-startup: true
|
preload-on-startup: true
|
||||||
# 내부 운영용(원하면)
|
# 내부 운영용(원하면)
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ repositories {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation "com.kri.common:starter:beta.1.0.53"
|
implementation "com.kri.common:starter:beta.1.0.54"
|
||||||
|
|
||||||
implementation 'org.springframework.boot:spring-boot-starter-web'
|
implementation 'org.springframework.boot:spring-boot-starter-web'
|
||||||
implementation 'org.springframework.boot:spring-boot-starter-security'
|
implementation 'org.springframework.boot:spring-boot-starter-security'
|
||||||
|
|||||||
@@ -34,14 +34,14 @@ public class UserController {
|
|||||||
description = "사용자 리스트 조회"
|
description = "사용자 리스트 조회"
|
||||||
)
|
)
|
||||||
@GetMapping("list")
|
@GetMapping("list")
|
||||||
public List<UserBasicInfoDto> getUserList(){ return userService.getUserList(); }
|
public List<UserBasicInfoDto> getUserList() { return userService.getUserList(); }
|
||||||
|
|
||||||
@Operation(
|
@Operation(
|
||||||
summary = "ID 사용 여부 조회",
|
summary = "ID 사용 여부 조회",
|
||||||
description = "ID로 사용가능 여부 조회"
|
description = "ID로 사용가능 여부 조회"
|
||||||
)
|
)
|
||||||
@GetMapping("check-user-id")
|
@GetMapping("check-user-id")
|
||||||
public boolean checkUserId(@RequestParam String userId){
|
public boolean checkUserId(@RequestParam String userId) {
|
||||||
return userService.checkUserId(userId);
|
return userService.checkUserId(userId);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -50,7 +50,7 @@ public class UserController {
|
|||||||
description = "사용자 ID 목록 조회"
|
description = "사용자 ID 목록 조회"
|
||||||
)
|
)
|
||||||
@GetMapping("user-id-list")
|
@GetMapping("user-id-list")
|
||||||
public List<String> getUserIdArray(){
|
public List<String> getUserIdArray() {
|
||||||
return userService.getUserIdArray();
|
return userService.getUserIdArray();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -22,7 +22,7 @@ public class GetProjectTop10ResponseDto {
|
|||||||
@Schema(description = "연구팀 명 (p_rsch_team_name)")
|
@Schema(description = "연구팀 명 (p_rsch_team_name)")
|
||||||
private final String researchTeamName;
|
private final String researchTeamName;
|
||||||
|
|
||||||
public static GetProjectTop10ResponseDto from(ProjectBasicInfoEntity e){
|
public static GetProjectTop10ResponseDto from(ProjectBasicInfoEntity e) {
|
||||||
return GetProjectTop10ResponseDto.builder()
|
return GetProjectTop10ResponseDto.builder()
|
||||||
.childSn(e.getPChildSn())
|
.childSn(e.getPChildSn())
|
||||||
.title(e.getPTitle())
|
.title(e.getPTitle())
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import java.util.List;
|
|||||||
public class ProjectService {
|
public class ProjectService {
|
||||||
private final ProjectMapper projectMapper;
|
private final ProjectMapper projectMapper;
|
||||||
|
|
||||||
public List<GetProjectTop10ResponseDto> getProjectTop10(GetProjectTop10RequestDto getProjectTop10RequestDto){
|
public List<GetProjectTop10ResponseDto> getProjectTop10(GetProjectTop10RequestDto getProjectTop10RequestDto) {
|
||||||
String childSn = getProjectTop10RequestDto.getChildSn();
|
String childSn = getProjectTop10RequestDto.getChildSn();
|
||||||
String keyword = getProjectTop10RequestDto.getKeyword();
|
String keyword = getProjectTop10RequestDto.getKeyword();
|
||||||
|
|
||||||
@@ -26,7 +26,7 @@ public class ProjectService {
|
|||||||
.toList();
|
.toList();
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<GetProjectTop10ResponseDto> getProjectTop10OnlyKeyword(String keyword){
|
public List<GetProjectTop10ResponseDto> getProjectTop10OnlyKeyword(String keyword) {
|
||||||
List<ProjectBasicInfoEntity> entityList = projectMapper.selectProjectTop10OnlyKeyword(keyword);
|
List<ProjectBasicInfoEntity> entityList = projectMapper.selectProjectTop10OnlyKeyword(keyword);
|
||||||
|
|
||||||
return entityList.stream()
|
return entityList.stream()
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ public class UserService {
|
|||||||
|
|
||||||
List<UserBasicInfoEntity> userBasicInfoEntityList = userMapper.selectUserWithIdPw(userId,userPw);
|
List<UserBasicInfoEntity> userBasicInfoEntityList = userMapper.selectUserWithIdPw(userId,userPw);
|
||||||
|
|
||||||
if(userBasicInfoEntityList.isEmpty()){
|
if(userBasicInfoEntityList.isEmpty()) {
|
||||||
throw BusinessException.notFound("USER_NOT_FOUND", "사용자가 없습니다.")
|
throw BusinessException.notFound("USER_NOT_FOUND", "사용자가 없습니다.")
|
||||||
.with("userId", userId)
|
.with("userId", userId)
|
||||||
.with("userPw", userPw);
|
.with("userPw", userPw);
|
||||||
@@ -32,17 +32,17 @@ public class UserService {
|
|||||||
return UserBasicInfoDto.from(entity);
|
return UserBasicInfoDto.from(entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<UserBasicInfoDto> getUserList(){
|
public List<UserBasicInfoDto> getUserList() {
|
||||||
return userMapper.selectUser().stream()
|
return userMapper.selectUser().stream()
|
||||||
.map(UserBasicInfoDto::from)
|
.map(UserBasicInfoDto::from)
|
||||||
.toList();
|
.toList();
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean checkUserId(String userId){
|
public boolean checkUserId(String userId) {
|
||||||
return !userMapper.selectExistUser(userId);
|
return !userMapper.selectExistUser(userId);
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<String> getUserIdArray(){
|
public List<String> getUserIdArray() {
|
||||||
return userMapper.selectUserIdList();
|
return userMapper.selectUserIdList();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user