Skip to content

Feature/#45 대회 전체 팀 조회 api 개발#46

Open
myeowon wants to merge 9 commits intodevelopfrom
Feature/#45_대회-전체-팀-조회-API-개발

Hidden character warning

The head ref may contain hidden characters: "Feature/#45_\ub300\ud68c-\uc804\uccb4-\ud300-\uc870\ud68c-API-\uac1c\ubc1c"
Open

Feature/#45 대회 전체 팀 조회 api 개발#46
myeowon wants to merge 9 commits intodevelopfrom
Feature/#45_대회-전체-팀-조회-API-개발

Conversation

@myeowon
Copy link
Member

@myeowon myeowon commented Dec 31, 2025

🔥 연관된 이슈

close: #45

📜 작업 내용

  • 대회 전체 팀 조회 api를 개발했습니다.
  • 대회에 속하는 모든 팀들의 전체 보기용 정보를 조회합니다.
  1. 현재 시간(투표 기간 여부)에 따라isVotedisLiked 필드 값이 달라집니다.
    • 현재 투표 기간이라면 isVotedtrue/false
      • isLiked는 null
    • 현재 투표 기간이 아니라면 isLikedtrue/false
      • isVoted는 null
  2. Authorization 헤더 유무에 따라 응답의 isLiked/isVoted 필드의 값이 달라집니다:
    • 비회원: 모든 isLiked/isVoted 값이 false
    • 회원: 로그인한 사용자의 좋아요 여부에 따라 true / false
  • TeamVote를 생성하면서 schema.sql을 수정하였습니다.

💬 리뷰 요구사항

  • 투표 기간 여부 및 로그인 여부에 따른 처리로 함수가 길어진 것 같습니다.
  • 복잡하지 않은지 한 번 봐주시면 감사하겠습니다.

✨ 기타

  • 새해 복 많이 받으세요!☀️☀️☀️

@myeowon myeowon self-assigned this Dec 31, 2025
@myeowon myeowon added the ⭐️ 기능 구현 새로운 기능을 구현 label Dec 31, 2025
@JJimini
Copy link
Collaborator

JJimini commented Jan 5, 2026

회원과 비회원 처리에 대한 의논이 필요할 것 같아서 리뷰는 잠시 보류해두겠습니다😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⭐️ 기능 구현 새로운 기능을 구현

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] 대회 전체 팀 조회 API 개발

2 participants