[IDLE-571] ChatManager가 Center로서 공동 동작할 수 있도록 사용하는 id값 변경#272
[IDLE-571] ChatManager가 Center로서 공동 동작할 수 있도록 사용하는 id값 변경#272
Conversation
|
""" Walkthrough채팅 기능이 사용자 역할(요양보호사와 센터 관리자)에 따라 분리되어 처리되도록 서비스와 컨트롤러가 리팩터링되었습니다. 각 역할별로 메시지 전송, 읽기, 채팅방 생성 및 요약 조회 메서드가 별도로 구현되었으며, 엔드포인트도 역할별로 분리되었습니다. Changes
Sequence Diagram(s)sequenceDiagram
participant Carer
participant ChatSocketController
participant ChatFacadeService
participant CenterManagerService
participant ChatService
participant NotificationService
Carer->>ChatSocketController: /send/carer (SendChatMessageRequest)
ChatSocketController->>ChatFacadeService: carerSend(request, carerId)
ChatFacadeService->>ChatService: sendMessage(request, carerId)
ChatFacadeService->>NotificationService: notifyManagers()
ChatFacadeService->>CenterManagerService: getManagersByCenterId(centerId)
sequenceDiagram
participant CenterManager
participant ChatSocketController
participant ChatFacadeService
participant CenterService
participant ChatService
participant NotificationService
CenterManager->>ChatSocketController: /send/center (SendChatMessageRequest)
ChatSocketController->>ChatFacadeService: centerSend(request, managerId)
ChatFacadeService->>CenterService: getCenterId(managerId)
ChatFacadeService->>ChatService: sendMessage(request, centerId)
ChatFacadeService->>NotificationService: notifyCarer()
Possibly related PRs
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (1)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
|



1. 📄 Summary
요양보호사가 Center에게 채팅을 보내면,
CenterManager들은 본인의 센터와 관련된 채팅을 공동으로 접근하고 사용할 수 있도록 하였습니다.
Summary by CodeRabbit
/send/carer,/read/carer,/send/center,/read/center)를 통해 채팅을 이용할 수 있습니다.