-
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.
Merge pull request #138 from sharemindteam/feature/136-post-update
feat: 일대다 상담 질문 저장 구현
- Loading branch information
Showing
7 changed files
with
115 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
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
32 changes: 32 additions & 0 deletions
32
src/main/java/com/example/sharemind/post/dto/request/PostUpdateRequest.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,32 @@ | ||
package com.example.sharemind.post.dto.request; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import jakarta.validation.constraints.NotBlank; | ||
import jakarta.validation.constraints.NotNull; | ||
import jakarta.validation.constraints.Size; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
public class PostUpdateRequest { | ||
|
||
@Schema(description = "일대다 상담 아이디") | ||
@NotNull(message = "일대다 상담 아이디는 공백일 수 없습니다.") | ||
private Long postId; | ||
|
||
@Schema(description = "선택한 상담 카테고리", example = "BOREDOM") | ||
@NotBlank(message = "상담 카테고리는 공백일 수 없습니다.") | ||
private String consultCategory; | ||
|
||
@Schema(description = "상담 제목", example = "남자친구의 심리가 궁금해요") | ||
@NotBlank(message = "상담 제목은 공백일 수 없습니다.") | ||
private String title; | ||
|
||
@Schema(description = "상담 내용", example = "안녕하세요 어쩌구저쩌구~") | ||
@NotBlank(message = "상담 내용은 공백일 수 없습니다.") | ||
@Size(max = 1000, message = "상담 내용은 최대 1000자입니다.") | ||
private String content; | ||
|
||
@Schema(description = "최종 저장 여부", example = "최종 저장이면 true, 임시 저장이면 false") | ||
@NotNull(message = "최종 저장 여부는 공백일 수 없습니다.") | ||
private Boolean isCompleted; | ||
} |
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