Skip to content

Commit

Permalink
add 팝업 목록 조회
Browse files Browse the repository at this point in the history
  • Loading branch information
jangwooooo committed Jan 12, 2024
1 parent 806b380 commit de1dabb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,18 @@ public class PopupInfoResponse {

private String imageUrl;

private String title;

private String link;

private LocalDateTime expirationDateTime;

public static PopupInfoResponse from(Popup popup) {
return PopupInfoResponse.builder()
.imageUrl(popup.getImageUrl())
.link(popup.getLink())
.expirationDateTime(popup.getExpirationDateTime())
.imageUrl(popup.getPopupImageUrl())
.title(popup.getPopupTitle())
.link(popup.getPopupLink())
.expirationDateTime(popup.getPopupExpirationDateTime())
.build();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,15 @@ public class Popup {
@Column(name = "popup_seq")
private Long popupSeq;

@Column(name = "image_url", nullable = false)
private String imageUrl;
@Column(name = "popup_image_url", nullable = false)
private String popupImageUrl;

@Column(name = "link", nullable = true)
private String link;
@Column(name = "popup_title", nullable = false)
private String popupTitle;

@Column(name = "expiration_date_time", nullable = false)
private LocalDateTime expirationDateTime;
@Column(name = "popup_link", nullable = true)
private String popupLink;

@Column(name = "popup_expiration_date_time", nullable = false)
private LocalDateTime popupExpirationDateTime;
}

0 comments on commit de1dabb

Please sign in to comment.