-
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.
#373 [hotfix] 리퀘스트 객체 오류 수정
- Loading branch information
Showing
9 changed files
with
35 additions
and
35 deletions.
There are no files selected for viewing
11 changes: 0 additions & 11 deletions
11
module-api/src/main/java/com/mile/controller/user/dto/AccessTokenGetSuccess.java
This file was deleted.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
module-domain/src/main/java/com/mile/commentreply/service/dto/ReplyCreateRequest.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,14 @@ | ||
package com.mile.commentreply.service.dto; | ||
|
||
import jakarta.validation.constraints.NotBlank; | ||
import jakarta.validation.constraints.NotNull; | ||
import jakarta.validation.constraints.Size; | ||
|
||
public record ReplyCreateRequest( | ||
@NotBlank(message = "대댓글이 비어있습니다.") | ||
@Size(max = 1500, message = "대댓글은 1500자를 넘을 수 없습니다.") | ||
String content, | ||
@NotNull(message = "익명 여부가 비어있습니다.") | ||
boolean isAnonymous | ||
) { | ||
} |
17 changes: 8 additions & 9 deletions
17
module-domain/src/main/java/com/mile/moim/service/dto/MoimCreateRequest.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,33 +1,32 @@ | ||
package com.mile.moim.service.dto; | ||
|
||
import jakarta.validation.constraints.Max; | ||
import jakarta.validation.constraints.NotBlank; | ||
import jakarta.validation.constraints.NotEmpty; | ||
import jakarta.validation.constraints.NotNull; | ||
import jakarta.validation.constraints.Size; | ||
|
||
public record MoimCreateRequest( | ||
@Max(value = 10, message = "글모임명은 최대 10자 이내로 작성해주세요.") | ||
@Size(max = 10, message = "글모임명은 최대 10자 이내로 작성해주세요.") | ||
@NotBlank(message = "글감 제목이 비어 있습니다.") | ||
String moimName, | ||
@Max(value = 90, message = "글모임 소개글은 90자 이내로 작성해주세요.") | ||
@Size(max = 90, message = "글모임 소개글은 90자 이내로 작성해주세요.") | ||
String moimDescription, | ||
@NotNull(message = "공개 여부를 선택해 주세요.") | ||
Boolean isPublic, | ||
String imageUrl, | ||
|
||
@NotBlank(message = "필명이 입력되지 않았습니다.") | ||
@Max(value = 8, message = "필명은 최대 8자 이내로 작성해주세요.") | ||
@Size(max = 8, message = "필명은 최대 8자 이내로 작성해주세요.") | ||
String writerName, | ||
@Max(value = 100, message = "필명 소개글은 최대 100자 이내로 작성해주세요.") | ||
@Size(max = 100, message = "필명 소개글은 최대 100자 이내로 작성해주세요.") | ||
String writerNameDescription, | ||
|
||
@Max(value = 15, message = "글감은 최대 15자 이내로 작성해주세요.") | ||
@Size(max = 15, message = "글감은 최대 15자 이내로 작성해주세요.") | ||
@NotBlank(message = "글감 제목이 비어 있습니다.") | ||
String topic, | ||
@Max(value = 5, message = "글감 태그는 최대 5자 이내로 작성해주세요.") | ||
@Size(max = 5, message = "글감 태그는 최대 5자 이내로 작성해주세요.") | ||
@NotBlank(message = "글감 태그가 비어 있습니다.") | ||
String topicTag, | ||
@Max(value = 90, message = "글감 소개글은 최대 90자 이내로 작성해주세요.") | ||
@Size(max = 90, message = "글감 소개글은 최대 90자 이내로 작성해주세요.") | ||
String topicDescription | ||
) { | ||
} |
9 changes: 6 additions & 3 deletions
9
module-domain/src/main/java/com/mile/moim/service/dto/MoimInfoModifyRequest.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
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
8 changes: 4 additions & 4 deletions
8
module-domain/src/main/java/com/mile/topic/service/dto/TopicPutRequest.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
4 changes: 2 additions & 2 deletions
4
...ain/src/main/java/com/mile/writername/service/dto/WriterNameDescriptionUpdateRequest.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,11 +1,11 @@ | ||
package com.mile.writername.service.dto; | ||
|
||
import jakarta.validation.constraints.Max; | ||
import jakarta.validation.constraints.NotBlank; | ||
import jakarta.validation.constraints.Size; | ||
|
||
public record WriterNameDescriptionUpdateRequest( | ||
@NotBlank(message = "소개 글이 입력되지 않았습니다.") | ||
@Max(value = 110, message = "소개 글은 최대 110자 이내로 작성해주세요.") | ||
@Size(max = 110, message = "소개 글은 최대 110자 이내로 작성해주세요.") | ||
String description | ||
) { | ||
} |