-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [feat] : 채팅방 목록 조회 repository 함수 분리 * [test] : 채팅방 목록 조회 repository 함수 분리 테스트 반영 * [feat] : 채팅 목록 조회 분리에 따른 파라미터 제거 * [test] : 채팅 목록 조회 분리에 따른 파라미터 제거 * [feat] : 채팅 요청 목록 조회 repository 함수 추가 * [feat] : 채팅 요청 목록 조회 관련 DTO 생성 * [feat] : 채팅 목록 조회 DTO 불필요한 필드 삭제 * [feat] : 채팅 요청 목록 DTO mapper 추가 * [feat] : 채팅 요청 목록 조회 비즈니스 로직 추가 * [feat] : 채팅 요청 목록 조회 API 추가 * [test] : 채팅 목록, 채팅 요청 목록 API 분리 반영 * [test] : 채팅 요청 목록 조회 repository 테스트 * [test] : 채팅 요청 목록 조회 비즈니스 로직 테스트 * [test] : 채팅 요청 목록 조회 통합 테스트
- Loading branch information
Showing
14 changed files
with
323 additions
and
48 deletions.
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
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
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
36 changes: 36 additions & 0 deletions
36
src/main/java/com/dnd/gongmuin/chat/dto/response/ChatProposalInfo.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,36 @@ | ||
package com.dnd.gongmuin.chat.dto.response; | ||
|
||
import com.dnd.gongmuin.chat.domain.ChatStatus; | ||
import com.dnd.gongmuin.member.domain.JobGroup; | ||
import com.querydsl.core.annotations.QueryProjection; | ||
|
||
public record ChatProposalInfo( | ||
Long chatRoomId, | ||
String chatStatus, | ||
boolean isInquirer, | ||
Long partnerId, | ||
String partnerNickname, | ||
String partnerJobGroup, | ||
int partnerProfileImageNo | ||
) { | ||
@QueryProjection | ||
public ChatProposalInfo( | ||
Long chatRoomId, | ||
ChatStatus chatStatus, | ||
boolean isInquirer, | ||
Long partnerId, | ||
String partnerNickname, | ||
JobGroup partnerJobGroup, | ||
int partnerProfileImageNo | ||
) { | ||
this( | ||
chatRoomId, | ||
chatStatus.getLabel(), | ||
isInquirer, | ||
partnerId, | ||
partnerNickname, | ||
partnerJobGroup.getLabel(), | ||
partnerProfileImageNo | ||
); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/main/java/com/dnd/gongmuin/chat/dto/response/ChatProposalResponse.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,13 @@ | ||
package com.dnd.gongmuin.chat.dto.response; | ||
|
||
import com.dnd.gongmuin.question_post.dto.response.MemberInfo; | ||
|
||
public record ChatProposalResponse ( | ||
Long chatRoomId, | ||
String chatStatus, | ||
boolean isInquirer, | ||
MemberInfo chatPartner, | ||
String latestMessage, | ||
String messageType, | ||
String messageCreatedAt | ||
){} |
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
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
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
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
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
Oops, something went wrong.