-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
dc5d4be
commit 3064abf
Showing
6 changed files
with
110 additions
and
4 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
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
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
23 changes: 23 additions & 0 deletions
23
module-domain/src/main/java/com/mile/moim/service/dto/TopicCreateRequest.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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.mile.moim.service.dto; | ||
|
||
import jakarta.validation.constraints.Max; | ||
import jakarta.validation.constraints.NotBlank; | ||
public record TopicCreateRequest( | ||
@Max(value = 15, message = "글감은 최대 15자 이내로 작성해주세요.") | ||
@NotBlank(message = "글감 제목이 비어있습니다.") | ||
String topicName, | ||
@Max(value = 5, message = "글감 태그는 최대 5자 이내로 작성해주세요.") | ||
@NotBlank(message = "글감 태그가 비어있습니다.") | ||
String topicTag, | ||
@Max(value = 5, message = "글감 설명은 최대 90자 이내로 작성해주세요.") | ||
@NotBlank(message = "글감 설명은 비어있습니다.") | ||
String topicDescription | ||
) { | ||
public static TopicCreateRequest of( | ||
final String topicName, | ||
final String topicTag, | ||
final String topicDescription | ||
) { | ||
return new TopicCreateRequest(topicName, topicTag, topicDescription); | ||
} | ||
} |
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
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