diff --git a/src/main/java/com/dokdok/gathering/api/GatheringApi.java b/src/main/java/com/dokdok/gathering/api/GatheringApi.java index 1bc6259..c9df1c3 100644 --- a/src/main/java/com/dokdok/gathering/api/GatheringApi.java +++ b/src/main/java/com/dokdok/gathering/api/GatheringApi.java @@ -259,7 +259,7 @@ ResponseEntity> joinGathering( description = "조회 성공", content = @Content( mediaType = MediaType.APPLICATION_JSON_VALUE, - schema = @Schema(implementation = CursorResponse.class), + schema = @Schema(implementation = MyGatheringCursorResponse.class), examples = @ExampleObject(value = """ { "code": "SUCCESS", @@ -999,7 +999,7 @@ ResponseEntity>> getGatherin description = "조회 성공", content = @Content( mediaType = MediaType.APPLICATION_JSON_VALUE, - schema = @Schema(implementation = CursorResponse.class), + schema = @Schema(implementation = GatheringMemberCursorResponse.class), examples = @ExampleObject(value = """ { "code": "SUCCESS", diff --git a/src/main/java/com/dokdok/gathering/dto/response/GatheringMemberCursorResponse.java b/src/main/java/com/dokdok/gathering/dto/response/GatheringMemberCursorResponse.java new file mode 100644 index 0000000..b82bdba --- /dev/null +++ b/src/main/java/com/dokdok/gathering/dto/response/GatheringMemberCursorResponse.java @@ -0,0 +1,24 @@ +package com.dokdok.gathering.dto.response; + +import io.swagger.v3.oas.annotations.media.Schema; + +import java.util.List; + +@Schema(description = "모임 멤버 목록 커서 응답(문서용)") +public record GatheringMemberCursorResponse( + @Schema(description = "아이템 목록") + List items, + + @Schema(description = "페이지 크기", example = "10") + int pageSize, + + @Schema(description = "다음 페이지 존재 여부", example = "true") + boolean hasNext, + + @Schema(description = "다음 커서") + GatheringMemberCursor nextCursor, + + @Schema(description = "전체 아이템 수 (첫 페이지 요청 시에만 제공)", example = "100") + Integer totalCount +) { +} \ No newline at end of file diff --git a/src/main/java/com/dokdok/gathering/dto/response/MyGatheringCursorResponse.java b/src/main/java/com/dokdok/gathering/dto/response/MyGatheringCursorResponse.java new file mode 100644 index 0000000..4944f61 --- /dev/null +++ b/src/main/java/com/dokdok/gathering/dto/response/MyGatheringCursorResponse.java @@ -0,0 +1,24 @@ +package com.dokdok.gathering.dto.response; + +import io.swagger.v3.oas.annotations.media.Schema; + +import java.util.List; + +@Schema(description = "내 모임 목록 커서 응답(문서용)") +public record MyGatheringCursorResponse( + @Schema(description = "아이템 목록") + List items, + + @Schema(description = "페이지 크기", example = "10") + int pageSize, + + @Schema(description = "다음 페이지 존재 여부", example = "true") + boolean hasNext, + + @Schema(description = "다음 커서") + MyGatheringCursor nextCursor, + + @Schema(description = "전체 아이템 수 (첫 페이지 요청 시에만 제공)", example = "100") + Integer totalCount +) { +} \ No newline at end of file diff --git a/src/main/java/com/dokdok/retrospective/api/MeetingRetrospectiveApi.java b/src/main/java/com/dokdok/retrospective/api/MeetingRetrospectiveApi.java index efa9ad9..b13cf96 100644 --- a/src/main/java/com/dokdok/retrospective/api/MeetingRetrospectiveApi.java +++ b/src/main/java/com/dokdok/retrospective/api/MeetingRetrospectiveApi.java @@ -5,6 +5,7 @@ import com.dokdok.retrospective.dto.request.MeetingRetrospectiveRequest; import com.dokdok.retrospective.dto.response.CommentCursor; import com.dokdok.retrospective.dto.response.MeetingRetrospectiveResponse; +import com.dokdok.retrospective.dto.response.TopicCommentCursorResponse; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Parameter; import io.swagger.v3.oas.annotations.enums.ParameterIn; @@ -130,7 +131,7 @@ ResponseEntity> getMeetingRetrospectiv description = "조회 성공", content = @Content( mediaType = MediaType.APPLICATION_JSON_VALUE, - schema = @Schema(implementation = CursorResponse.class), + schema = @Schema(implementation = TopicCommentCursorResponse.class), examples = @ExampleObject(value = """ { "code": "SUCCESS", diff --git a/src/main/java/com/dokdok/retrospective/dto/response/TopicCommentCursorResponse.java b/src/main/java/com/dokdok/retrospective/dto/response/TopicCommentCursorResponse.java new file mode 100644 index 0000000..5dc86ef --- /dev/null +++ b/src/main/java/com/dokdok/retrospective/dto/response/TopicCommentCursorResponse.java @@ -0,0 +1,24 @@ +package com.dokdok.retrospective.dto.response; + +import io.swagger.v3.oas.annotations.media.Schema; + +import java.util.List; + +@Schema(description = "토픽 코멘트 목록 커서 응답(문서용)") +public record TopicCommentCursorResponse( + @Schema(description = "아이템 목록") + List items, + + @Schema(description = "페이지 크기", example = "10") + int pageSize, + + @Schema(description = "다음 페이지 존재 여부", example = "true") + boolean hasNext, + + @Schema(description = "다음 커서") + CommentCursor nextCursor, + + @Schema(description = "전체 아이템 수 (첫 페이지 요청 시에만 제공)", example = "100") + Integer totalCount +) { +} \ No newline at end of file