Skip to content

Commit 1ce75ec

Browse files
[EA3-78] feat : 스터디 게시판 목록 응답 DTO
1 parent 74b844b commit 1ce75ec

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
package grep.neogul_coder.domain.studypost.dto;
2+
3+
import grep.neogul_coder.domain.studypost.Category;
4+
import io.swagger.v3.oas.annotations.media.Schema;
5+
import java.time.LocalDateTime;
6+
import lombok.Getter;
7+
8+
@Getter
9+
@Schema(description = "스터디 게시글 목록 응답 DTO")
10+
public class StudyPostListResponse {
11+
12+
@Schema(description = "게시글 ID", example = "12")
13+
private Long id;
14+
15+
@Schema(description = "제목", example = "모든 국민은 직업선택의 자유를 가진다.")
16+
private String title;
17+
18+
@Schema(description = "카테고리: NOTICE(공지), FREE(자유)", example = "NOTICE")
19+
private Category category;
20+
21+
@Schema(description = "본문", example = "국회는 의원의 자격을 심사하며, 의원을 징계할 있다.")
22+
private String content;
23+
24+
@Schema(description = "작성일", example = "2025-07-10T14:32:00")
25+
private LocalDateTime createdDate;
26+
27+
@Schema(description = "댓글 수", example = "3")
28+
private int commentCount;
29+
}

0 commit comments

Comments
 (0)