Skip to content

Commit

Permalink
Merge pull request #94 from UMC-ON/feat/fcm
Browse files Browse the repository at this point in the history
feat: 알림 리스트 알림 id 및 읽음 상태 추가
  • Loading branch information
ri-naa authored Sep 25, 2024
2 parents 49078da + 075d17d commit 844dfbe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,12 @@ public List<AlertListResponseDto> getAlertList(User user, Pageable pageable) {
private static List<AlertListResponseDto> getAlertListDto(Page<Alert> alertList) {
return alertList.stream()
.map(alert -> new AlertListResponseDto(
alert.getId(),
alert.getTitle(),
alert.getContents(),
alert.getAlertType(),
alert.getAlertConnectId()
alert.getAlertConnectId(),
alert.isRead()
)
).toList();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,17 @@
@Getter
@AllArgsConstructor
public class AlertListResponseDto {

private Long alertId;

private String title;

private String content;

private AlertType alertType;

private Long alertConnectId; // 알림 사용 시 게시글 id, 채팅방 id 등

private boolean isRead;

}

0 comments on commit 844dfbe

Please sign in to comment.