Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BE] refactor: ChatRoomController 공통 응답 적용 #437

Merged
merged 1 commit into from
Aug 20, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,11 @@ public ApiResponse<FindMyChatRoomResponse> findMine(@Auth Long memberId) {
}

@GetMapping("/{chatRoomId}")
public List<FindChatRoomMembersInfoResponse> findMemberInfo(@Auth Long memberId, @PathVariable Long chatRoomId) {
return chatRoomQueryService.findMemberInfo(memberId, chatRoomId);
public ApiResponse<List<FindChatRoomMembersInfoResponse>> findMemberInfo(
@Auth Long memberId,
@PathVariable Long chatRoomId
) {
return ApiResponse.ofSuccess(chatRoomQueryService.findMemberInfo(memberId, chatRoomId));
}

@GetMapping("/{chatRoomId}/club")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,11 @@ void findMemberInfo() throws Exception {
parameterWithName("chatRoomId").description("채팅방 ID")
)
.responseFields(
fieldWithPath("[].isOwner").description("채팅방 ID"),
fieldWithPath("[].memberId").description("채팅방 현재 인원"),
fieldWithPath("[].memberName").description("모임 이름"),
fieldWithPath("[].memberProfileImageUrl").description("모임 이미지 URL")
fieldWithPath("isSuccess").description("응답 성공 여부"),
fieldWithPath("data.[].isOwner").description("채팅방 ID"),
fieldWithPath("data.[].memberId").description("채팅방 현재 인원"),
fieldWithPath("data.[].memberName").description("모임 이름"),
fieldWithPath("data.[].memberProfileImageUrl").description("모임 이미지 URL")
)
.responseSchema(Schema.schema("FindChatRoomMembersInfoResponse"))
.build()
Expand Down
Loading