liujie
2026-07-29 c560a88ab429cd164d8eb6fcec42a273b898e230
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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; }
}