Skip to content

Commit

Permalink
feat: 컴파일 에러 부분 null 로 변경, TODO 마킹
Browse files Browse the repository at this point in the history
  • Loading branch information
youngsu5582 committed Jul 18, 2024
1 parent be96817 commit 8d1959d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 28 deletions.
15 changes: 2 additions & 13 deletions backend/src/main/java/corea/room/dto/RoomCreateRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,8 @@ public record RoomCreateRequest(
LocalDateTime reviewDeadline
) {

//TODO 해당 객체를 사용한다면 반영
public Room toEntity() {
return new Room(
title,
content,
memberId,
repositoryLink,
thumbnailLink,
matchingSize,
keyword,
currentParticipantsSize,
limitedParticipantsSize,
submissionDeadline,
reviewDeadline
);
return null;
}
}
16 changes: 2 additions & 14 deletions backend/src/main/java/corea/room/dto/RoomResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,8 @@ public record RoomResponse(
LocalDateTime reviewDeadline
) {

//TODO 해당 객체를 사용한다면 반영
public static RoomResponse of(final Room room, final String author) {
return new RoomResponse(
room.getId(),
room.getTitle(),
room.getContent(),
author,
room.getRepositoryLink(),
room.getThumbnailLink(),
room.getMatchingSize(),
List.of(room.getKeyword()),
room.getCurrentParticipantsSize(),
room.getLimitedParticipantsSize(),
room.getSubmissionDeadline(),
room.getReviewDeadline()
);
return null;
}
}
3 changes: 2 additions & 1 deletion backend/src/main/java/corea/room/service/RoomService.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ public RoomResponses findAll() {
.collect(collectingAndThen(toList(), RoomResponses::new));
}

//TODO 해당 객체를 사용한다면 반영
private RoomResponse toRoomResponse(final Room room) {
final Member member = getMember(room.getManagerId());
final Member member = null;
return RoomResponse.of(room, member.getEmail());
}

Expand Down

0 comments on commit 8d1959d

Please sign in to comment.