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

Feature/#4 : 게임 Feign 추가, Socket 관련 코드 추가 #9

Merged
merged 4 commits into from
Feb 5, 2025

Conversation

oo-ni
Copy link
Member

@oo-ni oo-ni commented Feb 4, 2025

  • feign 관련 dto 추가
  • WebSocketMessage에 MessageType 추가
  • Reflection API 추가 -> 런타임에서 메서드 호출
  • Reflection 사용 시 메서드 캐싱처리
  • Socket 활용 부분 MessageType활용 switch-case로 수정

@oo-ni oo-ni added the Feature 기능 추가 label Feb 4, 2025
@oo-ni oo-ni requested a review from Ban-gilhyeon February 4, 2025 11:38
@oo-ni oo-ni self-assigned this Feb 4, 2025
@oo-ni oo-ni linked an issue Feb 4, 2025 that may be closed by this pull request
2 tasks
Copy link
Contributor

@Ban-gilhyeon Ban-gilhyeon left a 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();
Copy link
Contributor

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")
Copy link
Contributor

Choose a reason for hiding this comment

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

@RequestMapping() 으로 정리하면 좋을 것 같네요 !
혹시 안쓰신 이유가 있으신가요?

Copy link
Member Author

Choose a reason for hiding this comment

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

기존 API로 하던거 복붙해온거라.. 놓쳤네요 ㅎㅎ RequestMapping 좋아요!

@oo-ni oo-ni merged commit 4a59de9 into develop Feb 5, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature 기능 추가
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature : Game쪽 Feign 추가, Socket 관련 코드 추가
2 participants