Skip to content

Comments

feat: 유저 그루밍 테스트 이력 조회 기능 구현#96

Merged
hisonghy merged 3 commits intodevelopfrom
feature/load-grooming-tests-history-95
Apr 15, 2025
Merged

feat: 유저 그루밍 테스트 이력 조회 기능 구현#96
hisonghy merged 3 commits intodevelopfrom
feature/load-grooming-tests-history-95

Conversation

@hisonghy
Copy link
Member

🌱 관련 이슈

📌 작업 내용 및 특이사항

  • 유저의 그루밍 테스트 이력을 조회하는 기능을 구현했습니다
  • 그루밍 테스트 이력 목록 조회 api는 요청한 유저가 제출했던 그루밍 테스트 결과 중 최신순의 5개 정보를 조회하고 테스트한 날짜를 기준으로 내림차순 정렬해 응답하도록 했습니다
  • 그루밍 테스트 이력 상세 조회 api는 이력 목록 조회에서 응답받은 날짜 데이터를 기반으로 요청하고, 요청한 특정 날짜에 해당되는 그루밍 테스트 결과를 조회하고 이를 기반으로 점수, 등급, 레벨을 계산해 결과를 응답하도록 구현했습니다
    (그루밍 테스트 히스토리를 저장하고 관리하는 테이블이 없어 요청할 때마다 점수, 등급, 레벨을 계산해 응답하도록 구현했는데, 추후 그루밍 테스트 결과를 저장할 때 계산된 점수, 등급, 레벨을 관리하는 히스토리 전용 테이블을 추가 설계해도 좋을 것 같습니다)

🔍 참고사항

  • 그루밍 테스트 이력 상세 조회 시, 유저가 테스트를 제출할 당시 선택했던 질문 및 답변 목록을 응답하는 방식으로 알고 있었는데, Figma를 확인해보니 테스트 제출 결과와 동일하게 점수, 등급, 레벨 등을 계산해 보여주는 구조로 되어 있어 해당 기준에 맞춰 우선 구현하였습니다

📚 기타

@hisonghy hisonghy added the ⚡ feature 새로운 기능 추가 및 수정 label Apr 14, 2025
@hisonghy hisonghy requested a review from myqewr April 14, 2025 08:08
@hisonghy hisonghy self-assigned this Apr 14, 2025
@hisonghy hisonghy force-pushed the feature/load-grooming-tests-history-95 branch from 4de7f32 to 9943455 Compare April 14, 2025 13:53
@hisonghy hisonghy merged commit 9a7853a into develop Apr 15, 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.

⚡ 유저 그루밍 테스트 이력 조회 API 구현

2 participants