liujie
2026-09-14 a910819c1853081735356c7a2c5e05a2953602ab
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
package com.tourguide.modules.operation.dto;
 
import com.tourguide.modules.operation.entity.AgreementSetting;
import java.time.LocalDateTime;
 
public class AgreementResponse {
    private final String code;
    private final String title;
    private final String content;
    private final LocalDateTime updatedAt;
 
    public AgreementResponse(AgreementSetting agreement) {
        this(agreement, agreement.getTitle());
    }
 
    public AgreementResponse(AgreementSetting agreement, String title) {
        this.code = agreement.getAgreementCode();
        this.title = title;
        this.content = agreement.getContent();
        this.updatedAt = agreement.getUpdatedAt();
    }
 
    public String getCode() { return code; }
    public String getTitle() { return title; }
    public String getContent() { return content; }
    public LocalDateTime getUpdatedAt() { return updatedAt; }
}