Skip to content

Commit 74b844b

Browse files
[EA3-78] feat : 스터디 게시판 저장/수정 요청 DTO 생성
1 parent 947c9d8 commit 74b844b

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package grep.neogul_coder.domain.studypost.dto;
2+
3+
import io.swagger.v3.oas.annotations.media.Schema;
4+
import jakarta.validation.constraints.NotBlank;
5+
import lombok.Getter;
6+
7+
@Getter
8+
@Schema(description = "스터디 게시글 저장/수정 요청 DTO")
9+
public class StudyPostRequest {
10+
11+
@Schema(description = "제목", example = "스터디 공지")
12+
@NotBlank
13+
private String title;
14+
15+
@Schema(description = "카테고리: NOTICE(공지), FREE(자유)", example = "NOTICE")
16+
@NotBlank
17+
private String category;
18+
19+
@Schema(description = "내용", example = "오늘은 각자 공부한 내용에 대해 발표가 있는 날 입니다!")
20+
@NotBlank
21+
private String content;
22+
}

0 commit comments

Comments
 (0)