From e0a786764ebc80da759e454341361602588256a6 Mon Sep 17 00:00:00 2001 From: r-ca Date: Thu, 14 Dec 2023 04:32:32 +0900 Subject: [PATCH] =?UTF-8?q?=E5=85=A8=E4=BD=93=E7=9A=84=E3=81=AB=E5=A4=89?= =?UTF-8?q?=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../model/document/DocumentDetail.java | 63 +++---------------- .../lacerta/model/document/DocumentMeta.java | 6 +- 2 files changed, 11 insertions(+), 58 deletions(-) diff --git a/model/src/main/java/one/nem/lacerta/model/document/DocumentDetail.java b/model/src/main/java/one/nem/lacerta/model/document/DocumentDetail.java index 28ac2287..e7cdacdc 100644 --- a/model/src/main/java/one/nem/lacerta/model/document/DocumentDetail.java +++ b/model/src/main/java/one/nem/lacerta/model/document/DocumentDetail.java @@ -1,67 +1,18 @@ package one.nem.lacerta.model.document; +import java.nio.file.Path; import java.util.Date; +import one.nem.lacerta.model.document.path.DocumentPath; +import one.nem.lacerta.model.document.DocumentMeta; + public class DocumentDetail { - String id; - String title; - Date createdAt; - Date updatedAt; + DocumentMeta meta; + DocumentPath path; String author; String defaultBranch; - - // Getter - - public String getId() { - return id; - } - - public String getTitle() { - return title; - } - - public Date getCreatedAt() { - return createdAt; - } - - public Date getUpdatedAt() { - return updatedAt; - } - - public String getAuthor() { - return author; - } - - public String getDefaultBranch() { - return defaultBranch; - } - - // Setter - - public void setId(String id) { - this.id = id; - } - - public void setTitle(String title) { - this.title = title; - } - - public void setCreatedAt(Date createdAt) { - this.createdAt = createdAt; - } - - public void setUpdatedAt(Date updatedAt) { - this.updatedAt = updatedAt; - } - - public void setAuthor(String author) { - this.author = author; - } - - public void setDefaultBranch(String defaultBranch) { - this.defaultBranch = defaultBranch; - } + Path fullPath; } diff --git a/model/src/main/java/one/nem/lacerta/model/document/DocumentMeta.java b/model/src/main/java/one/nem/lacerta/model/document/DocumentMeta.java index 2640c2dc..837e5d28 100644 --- a/model/src/main/java/one/nem/lacerta/model/document/DocumentMeta.java +++ b/model/src/main/java/one/nem/lacerta/model/document/DocumentMeta.java @@ -1,5 +1,7 @@ package one.nem.lacerta.model.document; +import java.util.ArrayList; +import one.nem.lacerta.model.document.tag.DocumentTag; import java.util.Date; public class DocumentMeta { @@ -7,8 +9,8 @@ public class DocumentMeta { String id; String title; Date updatedAt; - String author; - String defaultBranch; + Date createdAt; + ArrayList tags; // TODO-rca: Getter, Setter }