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

✨ [STMT-290] 단일 스터디 멤버 조회 API 구현 #151

Merged
merged 11 commits into from
Sep 10, 2024

Conversation

05AM
Copy link
Member

@05AM 05AM commented Sep 10, 2024

💁 해결 하려는 문제를 적어주세요

  • 단일 스터디 멤버를 조회하는 API를 구현했습니다.

🤔 어떤 방식으로 해결했는지 적어주세요

  • 단일 스터디 멤버 조회 화면에서 참여한 활동 목록의 경우 멤버의 활동 리스트를 반환하는 API가 있으므로 멤버의 정보에 초점을 맞춰 구현했습니다.
  • 응답 DTO
public record StudyMemberDetailResponse(
        Long id,
        String name,
        String image,
        String region,
        String profession,
        boolean canSendGrape,
        Integer achievement
) {
}

스터디 멤버 목록 조회와 유사하지만, 요청자가 해당 멤버에게 포도알을 보낼 수 있는지 여부와 성취도가 추가됐습니다.

  • 성취도 계산 로직
    기획에서 제공한 수식으로 구현했습니다.
성취한 활동 (출석, 수행 상태만) / 활동 개수(모임, 과제) * 100

모임(Meet)의 인정결석의 경우 기획에 문의 결과 성취한 활동 개수에 포함하는 것으로 전달받아 결론적으로 모임의 출석, 인정결석, 과제의 제출을 성취한 활동으로 포함했습니다.

🧑‍🏫 이해를 위해 필요한 자료가 있다면 첨부해주세요

  • 활동 수행상태

    • 공통
      • 미참여
  • 자유

    • 없음
  • 모임

    • 시작 전
    • 출석 ✅
    • 결석
    • 인정결석 ✅
    • 지각
  • 과제

    • 시작 전
    • 미제출
    • 수행 ✅
    • 미수행
  • 멤버 상세 조회 화면

@05AM 05AM added documentation Improvements or additions to documentation feature labels Sep 10, 2024
@05AM 05AM self-assigned this Sep 10, 2024
@05AM 05AM merged commit e3f05d4 into dev Sep 10, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant