Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
refactor ::
Browse files Browse the repository at this point in the history
  • Loading branch information
ori0o0p committed May 8, 2024
1 parent f9a510d commit 7cf5a89
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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);
}

}
Original file line number Diff line number Diff line change
@@ -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 {

Expand Down

0 comments on commit 7cf5a89

Please sign in to comment.