-
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.
Browse files
Browse the repository at this point in the history
* [feat] : 자동거절 채팅 Dto 추가 * [feat] : 자동거절 채팅 Dto 조회 쿼리 추가 * [feat] : 자동거절 시 알림 생성 추가 * [feat] : 채팅 요청 자동거절 알림타입 추가 * [refactor] : 조회쿼리가 아닌 rejecChatInquiryDtos를 이용하여 ids 가져오도록 변경 * [rename] : 메서드, DTO명 변경 * [test] : 채팅요청 자동거절 단위테스트 수정
- Loading branch information
Showing
6 changed files
with
83 additions
and
6 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
src/main/java/com/dnd/gongmuin/chat_inquiry/dto/RejectedChatInquiryDto.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,22 @@ | ||
package com.dnd.gongmuin.chat_inquiry.dto; | ||
|
||
import com.dnd.gongmuin.chat_inquiry.domain.ChatInquiry; | ||
import com.dnd.gongmuin.member.domain.Member; | ||
import com.querydsl.core.annotations.QueryProjection; | ||
|
||
public record RejectedChatInquiryDto( | ||
Long chatInquiryId, | ||
Member inquirer, | ||
Member answer | ||
) { | ||
@QueryProjection | ||
public RejectedChatInquiryDto( | ||
ChatInquiry chatInquiry | ||
) { | ||
this( | ||
chatInquiry.getId(), | ||
chatInquiry.getInquirer(), | ||
chatInquiry.getAnswerer() | ||
); | ||
} | ||
} |
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