Skip to content

[Player] Player 레이어드 구조 리펙토링#163

Merged
Jeong-Rae merged 4 commits intorefactorfrom
feat/CU-86et1wqqb
Apr 5, 2025
Merged

[Player] Player 레이어드 구조 리펙토링#163
Jeong-Rae merged 4 commits intorefactorfrom
feat/CU-86et1wqqb

Conversation

@Jeong-Rae
Copy link
Copy Markdown
Contributor

Summary

플레이어 레이어드 구조를 리펙토링 합니다.

Description

  • 기존의 Entity 기반의 도메인 로직을 Application, Core, Infra 영역으로 나누어 리펙토링합니다.
  • 불변 도메인 객체를 설계하고, 상호 의존성을 분리합니다.

Application -> core , infra
Infra -> core

구조의 의존성을 부여합니다.

@Jeong-Rae Jeong-Rae requested a review from Copilot April 5, 2025 08:19
@Jeong-Rae Jeong-Rae self-assigned this Apr 5, 2025
@Jeong-Rae Jeong-Rae merged commit 6566b87 into refactor Apr 5, 2025
@Jeong-Rae Jeong-Rae deleted the feat/CU-86et1wqqb branch April 5, 2025 08:19
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 110 out of 110 changed files in this pull request and generated 2 comments.

public OAuthType findOAuthTypeByEmail(String email) {
return playerRepository.getOAuthTypeByEmail(email)
.orElseThrow(() -> {
logger.warn("[findOAtuhTypebyEmail] 존재하지 않는 email, email={}", email);
Copy link

Copilot AI Apr 5, 2025

Choose a reason for hiding this comment

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

There is a typo in the log message: 'findOAtuhTypebyEmail' should be corrected to 'findOAuthTypeByEmail'.

Suggested change
logger.warn("[findOAtuhTypebyEmail] 존재하지 않는 email, email={}", email);
logger.warn("[findOAuthTypeByEmail] 존재하지 않는 email, email={}", email);

Copilot uses AI. Check for mistakes.
Comment on lines +61 to +62
int exp = player.increaseLevelPoint(point).getExp();
playerRepository.save(PlayerConverter.toEntity(player));
Copy link

Copilot AI Apr 5, 2025

Choose a reason for hiding this comment

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

Ensure that the updated player state returned by increaseLevelPoint is the same instance being persisted. If increaseLevelPoint creates a new instance, consider storing that instance in a variable and passing it to PlayerConverter.toEntity before saving.

Suggested change
int exp = player.increaseLevelPoint(point).getExp();
playerRepository.save(PlayerConverter.toEntity(player));
Player updatedPlayer = player.increaseLevelPoint(point);
int exp = updatedPlayer.getExp();
playerRepository.save(PlayerConverter.toEntity(updatedPlayer));

Copilot uses AI. Check for mistakes.
Jeong-Rae added a commit that referenced this pull request Apr 5, 2025
* refactor: 디렉토리 위치 변경

* refactor(PlayerDetail): player details 정보 레이어 분리

* refactor(PlayerProfile): 플레이어 Profile 조회 리펙토링

* refactor: port 패키지 위치 변경
@Jeong-Rae Jeong-Rae restored the feat/CU-86et1wqqb branch April 5, 2025 21:08
@Jeong-Rae Jeong-Rae deleted the feat/CU-86et1wqqb branch April 5, 2025 21:10
Jeong-Rae added a commit that referenced this pull request Apr 5, 2025
* [Player] Player 레이어드 구조 리펙토링 (#163)

* refactor: 디렉토리 위치 변경

* refactor(PlayerDetail): player details 정보 레이어 분리

* refactor(PlayerProfile): 플레이어 Profile 조회 리펙토링

* refactor: port 패키지 위치 변경

* refactor: Email 전송 구조 리펙토링

* refactor: 패키지명 authentication -> account로 변경

* refactor: JWT 인증 객체 TokenPlayer 추가

* refactor: Account Service 로직 Player 마이그레이션

* refactor: PlayerValidator 레이어 위치 변경

* refactor: PlayerProfile DTO 구성 변경

* refactor: 소셜 로그인 공통 로직 분리 및 파싱 로직 구조화

* refactor: 토큰 및 이메일 중복 로직 클래스 분리
Jeong-Rae added a commit that referenced this pull request Dec 16, 2025
Jeong-Rae added a commit that referenced this pull request Dec 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants