This repository has been archived by the owner on Nov 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
9 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
src/main/java/com/example/daemawiki/domain/content/dto/WriteContentRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
package com.example.daemawiki.domain.content.dto; | ||
|
||
import jakarta.validation.constraints.NotBlank; | ||
import jakarta.validation.constraints.NotNull; | ||
|
||
public record WriteContentRequest( | ||
@NotBlank(message = "문서의 id를 입력해주세요.") | ||
String documentId, | ||
@NotBlank(message = "내용을 추가하고 싶은 index를 입력해주세요.") | ||
String index, | ||
@NotNull(message = "null은 내용이 될 수 없습니다.") | ||
String content, | ||
@NotNull(message = "문서의 버전을 입력해주세요.") | ||
Integer version | ||
) { | ||
} |