From 0834b7c981d965f402e790205e95fea128efb7cc Mon Sep 17 00:00:00 2001 From: ahyeon-github Date: Tue, 7 Feb 2023 21:42:13 +0900 Subject: [PATCH] =?UTF-8?q?contents=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/dto/request/ParagraphRequestDto.java | 3 ++- .../domain/dto/response/ParagraphResponseDto.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/example/umc3_teamproject/domain/dto/request/ParagraphRequestDto.java b/src/main/java/com/example/umc3_teamproject/domain/dto/request/ParagraphRequestDto.java index 6c2d1c7..5c10e01 100644 --- a/src/main/java/com/example/umc3_teamproject/domain/dto/request/ParagraphRequestDto.java +++ b/src/main/java/com/example/umc3_teamproject/domain/dto/request/ParagraphRequestDto.java @@ -37,8 +37,9 @@ public static class Register { @Getter @Setter public static class Update { - @NotNull(message = "title은 필수 입력값입니다.") + @NotNull(message = "필수 입력값입니다.") private String title; + private String contents; } diff --git a/src/main/java/com/example/umc3_teamproject/domain/dto/response/ParagraphResponseDto.java b/src/main/java/com/example/umc3_teamproject/domain/dto/response/ParagraphResponseDto.java index 84bc479..10cf0a2 100644 --- a/src/main/java/com/example/umc3_teamproject/domain/dto/response/ParagraphResponseDto.java +++ b/src/main/java/com/example/umc3_teamproject/domain/dto/response/ParagraphResponseDto.java @@ -42,7 +42,7 @@ public ResponseEntity success(Paragraph paragraph) { .scriptId(paragraph.getScriptId().getScriptId()) .paragraphId(paragraph.getParagraphId()) .title(paragraph.getTitle()) - .contents("no contents") + .contents(paragraph.getContents()) .createdDate(paragraph.getCreatedDate()) .modifiedDate(paragraph.getModifiedDate()) .build();