-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Related to: #136
- Loading branch information
Showing
5 changed files
with
147 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
...java/com/hf/healthfriend/domain/chat/controller/schema/ChatMessageListResponseSchema.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.hf.healthfriend.domain.chat.controller.schema; | ||
|
||
import com.hf.healthfriend.domain.chat.dto.response.ChatMessageListResponseDto; | ||
import com.hf.healthfriend.global.spec.ApiBasicResponse; | ||
|
||
public class ChatMessageListResponseSchema extends ApiBasicResponse<ChatMessageListResponseDto> { | ||
} |
9 changes: 9 additions & 0 deletions
9
src/main/java/com/hf/healthfriend/domain/chat/dto/response/ChatMessageListResponseDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,24 @@ | ||
package com.hf.healthfriend.domain.chat.dto.response; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.Builder; | ||
|
||
import java.util.List; | ||
|
||
@Builder | ||
public record ChatMessageListResponseDto( | ||
List<ChatMessageResponseDto> chatMessages, | ||
|
||
@Schema(description = "현재 페이지가 첫 번째 페이지인지 여부") | ||
boolean isFirst, | ||
|
||
@Schema(description = "현재 페이지가 마지막 페이지인지 여부") | ||
boolean isLast, | ||
|
||
@Schema(description = "현재 페이지") | ||
int page, | ||
|
||
@Schema(description = "페이지의 크기 (채팅 메시지를 불러온 개수)") | ||
int pageSize | ||
) { | ||
} |
6 changes: 6 additions & 0 deletions
6
...d/domain/chat/dto/response/messagecontent/MatchingResponseChatMessageResponseContent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
package com.hf.healthfriend.domain.chat.dto.response.messagecontent; | ||
|
||
import com.hf.healthfriend.domain.chat.constant.MatchingResponseType; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
|
||
public record MatchingResponseChatMessageResponseContent( | ||
|
||
@Schema(description = "매칭 신청의 응답 타입") | ||
MatchingResponseType matchingResponseType, | ||
|
||
@Schema(description = "매칭 신청을 거절할 경우의 메시지. matchingResponsetype이 " + | ||
"ACCEPTED일 경우 null") | ||
String cancelMessage | ||
) { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters