-
Notifications
You must be signed in to change notification settings - Fork 0
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
Refact/#207 chatroom domain #214
Conversation
[MERGE] dev λ₯Ό main μ λ³ν©
develop to main (HOTFIX)
[MERGE] mainμ develop λ°μ
Alpha Update
Test Results0 testsβββ0 β
ββ0s β±οΈ Results for commit 7b3b8f4. β»οΈ This comment has been updated with latest results. |
@@ -17,7 +16,7 @@ public class CursorPaginationInfoReq { | |||
private final int pageSize; | |||
|
|||
@Nullable | |||
private final Sort.Direction sortOrder; | |||
private final Direction sortOrder; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sort.Directionκ³Ό Directionμ μ°¨μ΄κ° λκ°μ? (κΆκΈ)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
λμΌν ν΄λμ€μμ!
return chatRoomRepository.findAllChatRoomByUserId(userId); | ||
public CursorPaginationResult<ChatRoomPublicRes> findAllChatRoomByUserId(Long userId, | ||
CursorPaginationInfoReq pageable) { | ||
log.info("findAllChatRoomByUserId - userId: {}", userId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ππ» μ΄μ λ‘κ·Έ μ°λκ±° μΆκ°ν΄μΌνλλ° μ΄ λΆλΆλ 컨벀μ κ³ λ―Όν΄λ³΄λ©΄ μ’μ λ― ν©λλ€~
} | ||
|
||
@Transactional | ||
public void leaveChatroom(Long userId, String chatRoomId) { | ||
var user = findUserById(userId); | ||
var chatRoom = findChatRoomById(chatRoomId); | ||
|
||
chatRoom.leaveUser(user); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
μ±ν λλ©μΈ 리ν©ν΄μ μ¬λ €μ£Όλ©΄ μ±ν λ°© λκ°κΈ° λ‘μ§ μμ νκ² λ€κ³ μκΈ°νμλλ° μ΄λ―Έ ꡬνμ΄ λ€ λμ΄μκ΅°μ,,,! μμΌλ‘λ 미리 μ§κ² λ€κ³ λ§ν΄μ£Όλ©΄ μ’μ κ² κ°μμπ
ChatRoom.builder().project(project).creator(creator).sender(sender).build()); | ||
chatRepository.createCollection(chatRoom.getId()); | ||
return ChatRoomCreateRes.from(chatRoom); | ||
public void createChatRoom(Project project, User creator, User sender) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
μμ μ½λμμλ μ ν¨μ±μ κ²μ¬νλ λ‘μ§μ΄ μμλλ° μλ‘ λ°λ λ‘μ§μλ μλ κ² κ°μμ νΉμ μΌλΆλ¬ μ κ±°ν μ΄μ κ° μμκΉμ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
μ΄λ―Έ 맀μΉμλΉμ€μμ μ ν¨μ± κ²μ¬λ₯Ό μ§νν΄μ μΆκ°μ μΌλ‘ μ§νν νμκ° μλ€κ³ νλ¨νμ΅λλ€!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM~π
π κ°λ° μ¬ν
ChatRoom
리νν λ§μ μ§ννμ΅λλ€.ChatRoom
μΌλ‘ λ³κ²½λμμ΅λλ€.μ΄μ λ²νΈ