package com.tourguide.modules.system.dto;
|
|
import com.tourguide.modules.system.entity.SystemNotice;
|
|
import java.time.LocalDateTime;
|
|
public class GuideNotificationResponse {
|
private final Long id;
|
private final String type;
|
private final String title;
|
private final String content;
|
private final LocalDateTime time;
|
private final boolean read;
|
|
public GuideNotificationResponse(SystemNotice notice, boolean read) {
|
this.id = notice.getId();
|
this.type = notice.getNoticeType();
|
this.title = notice.getNoticeTitle();
|
this.content = notice.getNoticeContent();
|
this.time = notice.getPublishTime();
|
this.read = read;
|
}
|
|
public Long getId() { return id; }
|
public String getType() { return type; }
|
public String getTitle() { return title; }
|
public String getContent() { return content; }
|
public LocalDateTime getTime() { return time; }
|
public boolean isRead() { return read; }
|
}
|