Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main/java/com/dokdok/gathering/api/GatheringApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ ResponseEntity<ApiResponse<GatheringJoinResponse>> joinGathering(
description = "조회 성공",
content = @Content(
mediaType = MediaType.APPLICATION_JSON_VALUE,
schema = @Schema(implementation = CursorResponse.class),
schema = @Schema(implementation = MyGatheringCursorResponse.class),
examples = @ExampleObject(value = """
{
"code": "SUCCESS",
Expand Down Expand Up @@ -999,7 +999,7 @@ ResponseEntity<ApiResponse<PageResponse<GatheringBookListResponse>>> getGatherin
description = "조회 성공",
content = @Content(
mediaType = MediaType.APPLICATION_JSON_VALUE,
schema = @Schema(implementation = CursorResponse.class),
schema = @Schema(implementation = GatheringMemberCursorResponse.class),
examples = @ExampleObject(value = """
{
"code": "SUCCESS",
Expand Down
Original file line number Diff line number Diff line change
@@ -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<GatheringMemberResponse> items,

@Schema(description = "페이지 크기", example = "10")
int pageSize,

@Schema(description = "다음 페이지 존재 여부", example = "true")
boolean hasNext,

@Schema(description = "다음 커서")
GatheringMemberCursor nextCursor,

@Schema(description = "전체 아이템 수 (첫 페이지 요청 시에만 제공)", example = "100")
Integer totalCount
) {
}
Original file line number Diff line number Diff line change
@@ -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<GatheringListItemResponse> items,

@Schema(description = "페이지 크기", example = "10")
int pageSize,

@Schema(description = "다음 페이지 존재 여부", example = "true")
boolean hasNext,

@Schema(description = "다음 커서")
MyGatheringCursor nextCursor,

@Schema(description = "전체 아이템 수 (첫 페이지 요청 시에만 제공)", example = "100")
Integer totalCount
) {
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -130,7 +131,7 @@ ResponseEntity<ApiResponse<MeetingRetrospectiveResponse>> getMeetingRetrospectiv
description = "조회 성공",
content = @Content(
mediaType = MediaType.APPLICATION_JSON_VALUE,
schema = @Schema(implementation = CursorResponse.class),
schema = @Schema(implementation = TopicCommentCursorResponse.class),
examples = @ExampleObject(value = """
{
"code": "SUCCESS",
Expand Down
Original file line number Diff line number Diff line change
@@ -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<MeetingRetrospectiveResponse.CommentResponse> items,

@Schema(description = "페이지 크기", example = "10")
int pageSize,

@Schema(description = "다음 페이지 존재 여부", example = "true")
boolean hasNext,

@Schema(description = "다음 커서")
CommentCursor nextCursor,

@Schema(description = "전체 아이템 수 (첫 페이지 요청 시에만 제공)", example = "100")
Integer totalCount
) {
}