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

[Feat] sologame 기록 저장 #27

Merged
merged 11 commits into from
Sep 29, 2024
Merged

[Feat] sologame 기록 저장 #27

merged 11 commits into from
Sep 29, 2024

Conversation

kamothi
Copy link
Member

@kamothi kamothi commented Sep 28, 2024

✏️ 작업 개요

sologame 기록 저장

⛳ 작업 분류

  • 저장 controller api 개발
  • 솔로 미니게임 각 레이어별 로직 추가
  • DTO 추가 및 validate 추가

🔨 작업 상세 내용

  1. 현재 저희 게임의 솔로 미니게임 2개에 대해서만 기록을 저장하게 구성하였습니다. 추후 멀티 미니게임의 논의가 끝나면 추가하도록 하겠습니다.
  2. controller의 경우 실질적으로 호출은 현재 저장 api만 필요하다고 판단이 되어 save만 추가해두었으며 서비스 레이어에 다른 도메인에서 해당 서비스 로직을 사용할 것 같아 몇개 만들어 두었습니다.

💡 생각해볼 문제

  • 냉무

@kamothi kamothi added the 기능구현 Good for newcomers label Sep 28, 2024
Copy link

github-actions bot commented Sep 28, 2024

Test Results

22 tests   22 ✅  3s ⏱️
 5 suites   0 💤
 5 files     0 ❌

Results for commit 406f0ce.

♻️ This comment has been updated with latest results.

private final RhythmScoreService rhythmScoreService;

// 저장
@PostMapping("/rhythm")
Copy link
Member

Choose a reason for hiding this comment

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

restful API에서는 rhythms으로 하지 않나요?

Copy link
Member Author

Choose a reason for hiding this comment

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

그게 더 맞을거 같네요

private int score;

@Column(name = "created_at", nullable = false, updatable = false)
@CreationTimestamp
Copy link
Member

Choose a reason for hiding this comment

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

이건 처음 보네요

Copy link
Member

Choose a reason for hiding this comment

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

1주일에 대한 랭킹 제공이라면 게임 전적에 대한 랭킹 포함 여부를 결정하는 enum으로 이해했어요

Copy link
Member Author

Choose a reason for hiding this comment

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

저거는 사용자가 캐릭터를 삭제할 경우 기록에서 표시하기 위한 필드였습니다. 랭킹에 대해서는 고민하고 있는 부분이 있는데 회의에서 이야기 하도록 하겠습니다.

@kamothi kamothi merged commit 1d6559e into main Sep 29, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
기능구현 Good for newcomers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants