Skip to content

Commit 678c3a2

Browse files
committed
refactor: reformat code
1 parent 388a618 commit 678c3a2

File tree

74 files changed

+252
-191
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+252
-191
lines changed

src/main/java/com/somemore/domains/center/dto/request/CenterProfileUpdateRequestDto.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@ public record CenterProfileUpdateRequestDto(
2121
@Schema(description = "센터 소개", example = "저희 도서관은 유명해요")
2222
@NotBlank(message = "센터 소개는 필수 값입니다.")
2323
String introduce
24-
) {}
24+
) {
25+
}

src/main/java/com/somemore/domains/center/dto/response/CenterSimpleInfoResponseDto.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,23 @@
1212
@JsonNaming(SnakeCaseStrategy.class)
1313
@Schema(description = "기관 정보 응답 DTO")
1414
public record CenterSimpleInfoResponseDto(
15-
@Schema(description = "기관 아이디", example = "123e4567-e89b-12d3-a456-426614174000")
16-
UUID id,
17-
@Schema(description = "기관 이름", example = "환경 봉사 센터")
18-
String name
15+
@Schema(description = "기관 아이디", example = "123e4567-e89b-12d3-a456-426614174000")
16+
UUID id,
17+
@Schema(description = "기관 이름", example = "환경 봉사 센터")
18+
String name
1919
) {
2020

2121
public static CenterSimpleInfoResponseDto from(Center center) {
2222
return CenterSimpleInfoResponseDto.builder()
23-
.id(center.getId())
24-
.name(center.getName())
25-
.build();
23+
.id(center.getId())
24+
.name(center.getName())
25+
.build();
2626
}
2727

2828
public static CenterSimpleInfoResponseDto of(UUID centerId, String name) {
2929
return CenterSimpleInfoResponseDto.builder()
30-
.id(centerId)
31-
.name(name)
32-
.build();
30+
.id(centerId)
31+
.name(name)
32+
.build();
3333
}
3434
}

src/main/java/com/somemore/domains/center/dto/response/PreferItemResponseDto.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
import java.util.UUID;
77

88
@Builder
9-
public record PreferItemResponseDto (
9+
public record PreferItemResponseDto(
1010
Long id,
1111
UUID centerId,
1212
String itemName
13-
){
13+
) {
1414
public static PreferItemResponseDto from(PreferItem preferItem) {
1515
return PreferItemResponseDto.builder()
1616
.id(preferItem.getId())

src/main/java/com/somemore/domains/center/repository/center/CenterRepository.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,16 @@
99

1010
public interface CenterRepository {
1111
Center save(Center center);
12+
1213
boolean existsById(UUID id);
14+
1315
default boolean doesNotExistById(UUID id) {
1416
return !existsById(id);
1517
}
18+
1619
Optional<Center> findCenterById(UUID id);
20+
1721
List<CenterOverviewInfo> findCenterOverviewsByIds(List<UUID> ids);
22+
1823
void deleteAllInBatch();
1924
}

src/main/java/com/somemore/domains/center/repository/preferitem/PreferItemRepository.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
@Repository
1111
public interface PreferItemRepository {
1212
void save(PreferItem preferItem);
13+
1314
void deleteById(Long preferItemId);
15+
1416
Optional<PreferItem> findById(Long preferItemId);
17+
1518
List<PreferItem> findByCenterId(UUID centerId);
1619
}

src/main/java/com/somemore/domains/center/repository/preferitem/PreferItemRepositoryImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
@RequiredArgsConstructor
1212
@Repository
13-
public class PreferItemRepositoryImpl implements PreferItemRepository{
13+
public class PreferItemRepositoryImpl implements PreferItemRepository {
1414

1515
private final PreferItemJpaRepository preferItemJpaRepository;
1616

src/main/java/com/somemore/domains/center/service/query/PreferItemQueryService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public List<PreferItemResponseDto> getPreferItemDtosByCenterId(UUID centerId) {
2727
//프론트와 의논후 private으로 전환 예정
2828
@Override
2929
public List<PreferItem> getPreferItemsByCenterId(UUID centerId) {
30-
return preferItemRepository.findByCenterId(centerId);
30+
return preferItemRepository.findByCenterId(centerId);
3131
}
3232

3333
private static List<PreferItemResponseDto> preferItemConvertToDtos(List<PreferItem> preferItems) {

src/main/java/com/somemore/domains/center/usecase/query/CenterQueryUseCase.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
public interface CenterQueryUseCase {
1010
CenterProfileResponseDto getCenterProfileByCenterId(UUID centerId);
11+
1112
List<CenterOverviewInfo> getCenterOverviewsByIds(List<UUID> centerIds);
13+
1214
void validateCenterExists(UUID centerId);
1315
}

src/main/java/com/somemore/domains/center/usecase/query/PreferItemQueryUseCase.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@
88

99
public interface PreferItemQueryUseCase {
1010
List<PreferItemResponseDto> getPreferItemDtosByCenterId(UUID centerId);
11+
1112
List<PreferItem> getPreferItemsByCenterId(UUID centerId);
1213
}

src/main/java/com/somemore/domains/community/dto/request/CommunityBoardUpdateRequestDto.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ public record CommunityBoardUpdateRequestDto(
1515
@Schema(description = "커뮤니티 게시글 내용", example = "저 포함 5명이 같이 가면 좋을 거 같아요")
1616
@NotBlank(message = "게시글 내용은 필수 값입니다.")
1717
String content
18-
) {}
18+
) {
19+
}

0 commit comments

Comments
 (0)