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
3 changed files
with
13 additions
and
2 deletions.
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
5 changes: 5 additions & 0 deletions
5
src/main/java/com/example/daemawiki/domain/content/dto/DeleteContentRequest.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,7 +1,12 @@ | ||
package com.example.daemawiki.domain.content.dto; | ||
|
||
import jakarta.validation.constraints.NotBlank; | ||
import jakarta.validation.constraints.NotNull; | ||
|
||
public record DeleteContentRequest( | ||
@NotBlank(message = "추가할 목차의 인덱스를 입력해주세요.") | ||
String index, | ||
@NotNull(message = "문서의 버전을 입력해주세요.") | ||
Integer version | ||
) { | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/java/com/example/daemawiki/domain/content/dto/EditContentTableTitleRequest.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,8 +1,14 @@ | ||
package com.example.daemawiki.domain.content.dto; | ||
|
||
import jakarta.validation.constraints.NotBlank; | ||
import jakarta.validation.constraints.NotNull; | ||
|
||
public record EditContentTableTitleRequest( | ||
@NotBlank(message = "추가할 목차의 인덱스를 입력해주세요.") | ||
String index, | ||
@NotBlank(message = "새 제목을 입력해주세요.") | ||
String newTitle, | ||
@NotNull(message = "문서의 버전을 입력해주세요.") | ||
Integer version | ||
) { | ||
} |