-
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
Feature/#4 : 게임 Feign 추가, Socket 관련 코드 추가 #9
Conversation
oo-ni
commented
Feb 4, 2025
- feign 관련 dto 추가
- WebSocketMessage에 MessageType 추가
- Reflection API 추가 -> 런타임에서 메서드 호출
- Reflection 사용 시 메서드 캐싱처리
- Socket 활용 부분 MessageType활용 switch-case로 수정
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.
고생하셨습니다 !
case PLAYER_JOINED -> response = gameServiceClient.invitePlayer((PlayerReq) request.payload()).getBody(); | ||
case PLAYER_REMOVED -> response = gameServiceClient.removePlayer((PlayerReq) request.payload()).getBody(); | ||
case PLAYER_READY -> response = gameServiceClient.readyPlayer((PlayerReq) request.payload()).getBody(); | ||
case CONTENT_SELECTED -> response = gameServiceClient.selectContent((ContentSelectReq) request.payload()).getBody(); |
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.
최신 case 문이네요 ..
까먹고 있었습니다 보기 좋네요 !
public interface GameServiceClient { | ||
@PostMapping("/player/invite") | ||
@PostMapping("/api/game-service/room/player/invite") |
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.
@RequestMapping()
으로 정리하면 좋을 것 같네요 !
혹시 안쓰신 이유가 있으신가요?
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.
기존 API로 하던거 복붙해온거라.. 놓쳤네요 ㅎㅎ RequestMapping 좋아요!