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; } }