You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/org/devkor/apu/saerok_server/domain/collection/api/dto/response/GetCollectionCommentsResponse.java
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -6,10 +6,11 @@
6
6
importjava.util.List;
7
7
8
8
publicrecordGetCollectionCommentsResponse(
9
+
@Schema(description = "댓글 목록 (원댓글만 포함, 대댓글은 각 원댓글의 replies에 포함)")
9
10
List<Item> items,
10
11
@Schema(description = "내 컬렉션인지 여부", example = "true")
11
12
BooleanisMyCollection,
12
-
@Schema(description = "다음 페이지 존재 여부 (페이징 요청 시에만 유효)", example = "true")
13
+
@Schema(description = "다음 페이지 존재 여부 (페이징 요청 시에만 유효, 미사용 시 null)", example = "true", nullable = true)
13
14
BooleanhasNext
14
15
) {
15
16
@@ -28,19 +29,19 @@ public record Item(
28
29
Stringcontent,
29
30
@Schema(description = "댓글 상태 (ACTIVE, DELETED, BANNED)", example = "ACTIVE", requiredMode = Schema.RequiredMode.REQUIRED)
30
31
Stringstatus,
31
-
@Schema(description = "부모 댓글 ID (대댓글인 경우)", example = "5", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
32
+
@Schema(description = "부모 댓글 ID (원댓글이면 null, 대댓글이면 부모 댓글 ID)", example = "null", nullable = true, requiredMode = Schema.RequiredMode.NOT_REQUIRED)
32
33
LongparentId,
33
34
@Schema(description = "좋아요 수", example = "5", requiredMode = Schema.RequiredMode.REQUIRED)
34
35
intlikeCount,
35
-
@Schema(description = "좋아요 눌렀는지 여부", example = "true")
36
+
@Schema(description = "좋아요 눌렀는지 여부 (비로그인 시 false)", example = "true", requiredMode = Schema.RequiredMode.REQUIRED)
36
37
BooleanisLiked,
37
-
@Schema(description = "내 댓글인지 여부", example = "false")
38
+
@Schema(description = "내 댓글인지 여부 (비로그인 시 false)", example = "false", requiredMode = Schema.RequiredMode.REQUIRED)
38
39
BooleanisMine,
39
40
@Schema(description = "작성 시각", example = "2025-07-05T03:10:00", requiredMode = Schema.RequiredMode.REQUIRED)
40
41
LocalDateTimecreatedAt,
41
42
@Schema(description = "수정 시각", example = "2025-07-05T04:21:00", requiredMode = Schema.RequiredMode.REQUIRED)
0 commit comments