From 5fd8cbf85af4d3023fb62692021d28448f0a3838 Mon Sep 17 00:00:00 2001 From: gurdl7011 Date: Mon, 13 Nov 2023 08:59:27 +0900 Subject: [PATCH] =?UTF-8?q?=E2=AD=90=EF=B8=8F=20::=20CommentRequest?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../presentation/dto/request/CommentRequest.kt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/main/kotlin/com/example/onui/domain/timeline/presentation/dto/request/CommentRequest.kt diff --git a/src/main/kotlin/com/example/onui/domain/timeline/presentation/dto/request/CommentRequest.kt b/src/main/kotlin/com/example/onui/domain/timeline/presentation/dto/request/CommentRequest.kt new file mode 100644 index 0000000..c5ccbf7 --- /dev/null +++ b/src/main/kotlin/com/example/onui/domain/timeline/presentation/dto/request/CommentRequest.kt @@ -0,0 +1,11 @@ +package com.example.onui.domain.timeline.presentation.dto.request + +import javax.validation.constraints.NotBlank +import javax.validation.constraints.Size + +data class CommentRequest( + + @field:NotBlank(message = "comment는 null일 수 없습니다.") + @field:Size(max = 50, message = "댓글은 최대 50자 입니다.") + val comment: String +)