diff --git a/daemawiki-domain/src/main/java/org/daemawiki/domain/document_editor/model/DocumentEditor.java b/daemawiki-domain/src/main/java/org/daemawiki/domain/document_editor/model/DocumentEditor.java index b3ba73f..9100b36 100644 --- a/daemawiki-domain/src/main/java/org/daemawiki/domain/document_editor/model/DocumentEditor.java +++ b/daemawiki-domain/src/main/java/org/daemawiki/domain/document_editor/model/DocumentEditor.java @@ -1,14 +1,12 @@ package org.daemawiki.domain.document_editor.model; -import org.daemawiki.domain.user.dto.response.UserDetailResponse; import lombok.Builder; import lombok.Getter; -import lombok.Setter; +import org.daemawiki.domain.user.dto.response.UserDetailResponse; import java.util.List; @Getter -@Setter @Builder public class DocumentEditor { private final UserDetailResponse createdUser; diff --git a/daemawiki-domain/src/main/java/org/daemawiki/domain/document_info/model/Detail.java b/daemawiki-domain/src/main/java/org/daemawiki/domain/document_info/model/Detail.java index e8ff4db..ab30b1d 100644 --- a/daemawiki-domain/src/main/java/org/daemawiki/domain/document_info/model/Detail.java +++ b/daemawiki-domain/src/main/java/org/daemawiki/domain/document_info/model/Detail.java @@ -1,18 +1,12 @@ package org.daemawiki.domain.document_info.model; -import lombok.Builder; - -@Builder public record Detail( String title, String content ) { - public static Detail create(String title, String content) { - return Detail.builder() - .title(title) - .content(content) - .build(); + public static Detail of(String title, String content) { + return new Detail(title, content); } } diff --git a/daemawiki-domain/src/main/java/org/daemawiki/domain/document_info/model/Info.java b/daemawiki-domain/src/main/java/org/daemawiki/domain/document_info/model/Info.java index 46d9fd6..7ff6ac9 100644 --- a/daemawiki-domain/src/main/java/org/daemawiki/domain/document_info/model/Info.java +++ b/daemawiki-domain/src/main/java/org/daemawiki/domain/document_info/model/Info.java @@ -1,14 +1,12 @@ package org.daemawiki.domain.document_info.model; -import org.daemawiki.domain.file.model.File; import lombok.Builder; import lombok.Getter; -import lombok.Setter; +import org.daemawiki.domain.file.model.File; import java.util.List; @Getter -@Setter @Builder public class Info {