Skip to content

Commit

Permalink
Merge pull request #44 from KUSITMS-Team-A/refactor/43-add-popup-id
Browse files Browse the repository at this point in the history
[#43] Refactor: 팝업 조회할 때 내용에 팝업 아이디 추가
  • Loading branch information
pdohyung authored Nov 23, 2023
2 parents 76e3a4c + 8c4beef commit 37295ef
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
import java.util.stream.Stream;

@Slf4j
public record PopupGetResponseDto(String content, String endDate, String reservation) {
public record PopupGetResponseDto(String content, String endDate, String reservation, Long popupId) {

public static PopupGetResponseDto from(Popup popup) {
return new PopupGetResponseDto(popup.getContent(), getEndDate(popup).getDateType(),
getReservation(popup).getReservationType());
getReservation(popup).getReservationType(), popup.getId());
}

private static EndDateType getEndDate(Popup popup) {
Expand Down

0 comments on commit 37295ef

Please sign in to comment.