251222_01_DOC : 중괄호 스타일 통일

This commit is contained in:
2025-12-22 16:52:07 +09:00
parent 056f20130f
commit 056f97b9be
6 changed files with 12 additions and 12 deletions

View File

@@ -22,8 +22,8 @@ mybatis:
kri:
auth:
apikey:
enabled: true # API Key 인증 사용 여부
header-name: "X-API-Key" # API Key 헤더
enabled: true # API Key 인증 사용 여부
service-code: intranet-extension
preload-on-startup: true
# 내부 운영용(원하면)

View File

@@ -37,7 +37,7 @@ repositories {
}
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-security'

View File

@@ -34,14 +34,14 @@ public class UserController {
description = "사용자 리스트 조회"
)
@GetMapping("list")
public List<UserBasicInfoDto> getUserList(){ return userService.getUserList(); }
public List<UserBasicInfoDto> getUserList() { return userService.getUserList(); }
@Operation(
summary = "ID 사용 여부 조회",
description = "ID로 사용가능 여부 조회"
)
@GetMapping("check-user-id")
public boolean checkUserId(@RequestParam String userId){
public boolean checkUserId(@RequestParam String userId) {
return userService.checkUserId(userId);
}
@@ -50,7 +50,7 @@ public class UserController {
description = "사용자 ID 목록 조회"
)
@GetMapping("user-id-list")
public List<String> getUserIdArray(){
public List<String> getUserIdArray() {
return userService.getUserIdArray();
}
}

View File

@@ -22,7 +22,7 @@ public class GetProjectTop10ResponseDto {
@Schema(description = "연구팀 명 (p_rsch_team_name)")
private final String researchTeamName;
public static GetProjectTop10ResponseDto from(ProjectBasicInfoEntity e){
public static GetProjectTop10ResponseDto from(ProjectBasicInfoEntity e) {
return GetProjectTop10ResponseDto.builder()
.childSn(e.getPChildSn())
.title(e.getPTitle())

View File

@@ -15,7 +15,7 @@ import java.util.List;
public class ProjectService {
private final ProjectMapper projectMapper;
public List<GetProjectTop10ResponseDto> getProjectTop10(GetProjectTop10RequestDto getProjectTop10RequestDto){
public List<GetProjectTop10ResponseDto> getProjectTop10(GetProjectTop10RequestDto getProjectTop10RequestDto) {
String childSn = getProjectTop10RequestDto.getChildSn();
String keyword = getProjectTop10RequestDto.getKeyword();
@@ -26,7 +26,7 @@ public class ProjectService {
.toList();
}
public List<GetProjectTop10ResponseDto> getProjectTop10OnlyKeyword(String keyword){
public List<GetProjectTop10ResponseDto> getProjectTop10OnlyKeyword(String keyword) {
List<ProjectBasicInfoEntity> entityList = projectMapper.selectProjectTop10OnlyKeyword(keyword);
return entityList.stream()

View File

@@ -21,7 +21,7 @@ public class UserService {
List<UserBasicInfoEntity> userBasicInfoEntityList = userMapper.selectUserWithIdPw(userId,userPw);
if(userBasicInfoEntityList.isEmpty()){
if(userBasicInfoEntityList.isEmpty()) {
throw BusinessException.notFound("USER_NOT_FOUND", "사용자가 없습니다.")
.with("userId", userId)
.with("userPw", userPw);
@@ -32,17 +32,17 @@ public class UserService {
return UserBasicInfoDto.from(entity);
}
public List<UserBasicInfoDto> getUserList(){
public List<UserBasicInfoDto> getUserList() {
return userMapper.selectUser().stream()
.map(UserBasicInfoDto::from)
.toList();
}
public boolean checkUserId(String userId){
public boolean checkUserId(String userId) {
return !userMapper.selectExistUser(userId);
}
public List<String> getUserIdArray(){
public List<String> getUserIdArray() {
return userMapper.selectUserIdList();
}
}