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

Refact/#207 chatroom domain #214

Merged
merged 14 commits into from
Mar 6, 2024
Merged

Refact/#207 chatroom domain #214

merged 14 commits into from
Mar 6, 2024

Conversation

tidavid1
Copy link
Collaborator

@tidavid1 tidavid1 commented Mar 5, 2024

πŸš€ 개발 사항

  • μ±„νŒ… μœ μ € 맀핑 ν…Œμ΄λΈ”μ„ μΆ”κ°€ν–ˆμŠ΅λ‹ˆλ‹€.
  • 맀칭이 μ‹œμž‘λ  λ•Œ μžλ™μœΌλ‘œ μ±„νŒ…λ°©μ΄ μƒμ„±λ˜λŠ” λ‘œμ§μ„ μΆ”κ°€ν–ˆμŠ΅λ‹ˆλ‹€.
  • μ±„νŒ…λ°© λͺ©λ‘ μ‘°νšŒμ—μ„œ κ°€μž₯ 졜근 μ±„νŒ…μ„ λΆˆλŸ¬μ˜€λŠ” κΈ°λŠ₯을 μΆ”κ°€ν–ˆμŠ΅λ‹ˆλ‹€.
  • 맀핑 ν…Œμ΄λΈ” 좔가에 λ”°λ₯Έ ChatRoom λ¦¬νŽ™ν† λ§μ„ μ§„ν–‰ν–ˆμŠ΅λ‹ˆλ‹€.
    • 이제 μ±„νŒ…μ— μ°Έκ°€ν•œ μœ μ € λͺ©λ‘μ€ μ±„νŒ… μœ μ € 맀핑 ν…Œμ΄λΈ”κ³Ό 쑰인으둜 κ°–κ³ μ˜΅λ‹ˆλ‹€.
    • μ±„νŒ…λ°© λ‚˜κ°€κΈ°μ˜ 주체가 ChatRoom으둜 λ³€κ²½λ˜μ—ˆμŠ΅λ‹ˆλ‹€.
  • FlyWay V2둜 μ—…λ°μ΄νŠΈκ°€ μ§„ν–‰λ¬μŠ΅λ‹ˆλ‹€.
  • μ±„νŒ…λ°© 상세 λ‚΄μ—­ μ‘°νšŒμ—μ„œ μƒλŒ€ μœ μ € 정보λ₯Ό μ‘°νšŒν•  수 μžˆμŠ΅λ‹ˆλ‹€. @yougyung

이슈 번호

@tidavid1 tidavid1 added πŸ”„ Refactor κΈ°μ‘΄ 개발 된 μ½”λ“œμ˜ μˆ˜μ • 🎯MVP2 mvp2 κ°œλ°œμ‚¬ν•­ labels Mar 5, 2024
@tidavid1 tidavid1 self-assigned this Mar 5, 2024
@tidavid1 tidavid1 requested review from JIN-076 and happyjamy and removed request for JIN-076 March 5, 2024 04:31
Copy link

github-actions bot commented Mar 5, 2024

Test Results

0 tests   0 βœ…β€ƒβ€ƒ0s ⏱️
0 suites  0 πŸ’€
0 files    0 ❌

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;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sort.Directionκ³Ό Direction의 차이가 λ­”κ°€μš”? (ꢁ금)

Copy link
Collaborator Author

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);
Copy link
Collaborator

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);
Copy link
Collaborator

@JIN-076 JIN-076 Mar 6, 2024

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) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

μœ„μ— μ½”λ“œμ—μ„œλŠ” μœ νš¨μ„±μ„ κ²€μ‚¬ν•˜λŠ” 둜직이 μžˆμ—ˆλŠ”λ° μƒˆλ‘œ 바뀐 λ‘œμ§μ—λŠ” μ—†λŠ” 것 κ°™μ•„μ„œ ν˜Ήμ‹œ μΌλΆ€λŸ¬ μ œκ±°ν•œ μ΄μœ κ°€ μžˆμ„κΉŒμš”?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이미 λ§€μΉ­μ„œλΉ„μŠ€μ—μ„œ μœ νš¨μ„± 검사λ₯Ό μ§„ν–‰ν•΄μ„œ μΆ”κ°€μ μœΌλ‘œ 진행할 ν•„μš”κ°€ μ—†λ‹€κ³  νŒλ‹¨ν–ˆμŠ΅λ‹ˆλ‹€!

Copy link
Collaborator

@JIN-076 JIN-076 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM~πŸ‘

@tidavid1 tidavid1 merged commit bde6dfe into develop Mar 6, 2024
3 checks passed
@tidavid1 tidavid1 deleted the refact/#207-chatroom_domain branch March 6, 2024 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎯MVP2 mvp2 κ°œλ°œμ‚¬ν•­ πŸ”„ Refactor κΈ°μ‘΄ 개발 된 μ½”λ“œμ˜ μˆ˜μ •
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[πŸ›  REFACT] ChatRoom 도메인 λ¦¬νŽ™ν† λ§
3 participants