Skip to content

[WTH-476] 어드민용 일반 일정 조회 api 구현 - #100

Open
woneeeee wants to merge 4 commits into
devfrom
fix/WTH-476-일정-조회-api-버그-수정

Hidden character warning

The head ref may contain hidden characters: "fix/WTH-476-\uc77c\uc815-\uc870\ud68c-api-\ubc84\uadf8-\uc218\uc815"
Open

[WTH-476] 어드민용 일반 일정 조회 api 구현#100
woneeeee wants to merge 4 commits into
devfrom
fix/WTH-476-일정-조회-api-버그-수정

Conversation

@woneeeee

@woneeeee woneeeee commented Aug 26, 2026

Copy link
Copy Markdown
Member

📌 Summary

어떤 작업인지 한 줄 요약해 주세요.

어드민 일정 관리 페이지의 일반 일정 목록 조회 API를 추가합니다.

📝 Changes

변경사항을 what, why, how로 구분해 작성해 주세요.

What

  • GET /api/v4/admin/clubs/{clubId}/events 엔드포인트 추가
  • cardinal 파라미터 선택적으로 지원 (없으면 전체 기수 조회)

Why

  • 어드민 일정 관리 페이지에서 기존 GET /api/v4/clubs/{clubId}/schedules/monthly를 사용하고 있었으나, 해당 API는 세션 + 일반 일정을 모두 반환하여 일반 일정만 표시하는 "전체 일정" 탭에 사용 불가
  • 어드민용 일반 일정 조회 API가 별도로 필요

How

  • EventAdminController에 GET 엔드포인트 추가
  • GetScheduleQueryServicefindAdminEvents 메서드 추가 (cardinal 유무에 따라 기수 필터링 또는 전체 조회)

📸 Screenshots / Logs

필요시 스크린샷 or 로그를 첨부해주세요.

image

💡 Reviewer 참고사항

리뷰에 참고할 내용을 작성해주세요.

  • 세션은 포함하지 않고 일반 일정(Event)만 반환합니다.
  • cardinal 미전달 시 전체 기수 일정을 반환합니다.

✅ Checklist

  • PR 제목 설정 완료 (WTH-123 인증 필터 설정)
  • 테스트 구현 완료
  • 리뷰어 등록 완료
  • 자체 코드 리뷰 완료

@woneeeee
woneeeee requested review from hyxklee and soo0711 August 26, 2026 11:16
@woneeeee woneeeee self-assigned this Aug 26, 2026
@woneeeee woneeeee added the 📬 API 서버 API 통신 label Aug 26, 2026
@coderabbitai

coderabbitai Bot commented Aug 26, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: a6a518e9-d0df-4f94-a8bb-f1e3018df1bd


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@hyxklee hyxklee left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

메스드명만 한 번 고민해주시고 완료되면 머지해주세용
이렇게 API가 추가되는 경우는 문제 없지만, 기존에 쓰는 API가 있다면 하위호환도 고려해야하니 그런 부분도 인지하고 백엔드 개발을 하면 좋습니당ㅇ구리

return (events + sessions).sortedBy { it.start }
}

fun findAdminEvents(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

메서드 명이 AdminEvents라면 약간 어드민용 이벤트가 있나?
라는 생각이 들 것 같아용 findEventsByAdmin은 어떤가용가리

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

말씀해 주신대로 findEventsByAdmin으로 수정했습니다!

start: LocalDateTime,
end: LocalDateTime,
): List<EventResponse> {
clubMemberPolicy.getActiveMember(clubId, userId)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

어드민 권한이...jwt 필터에서 걸렀던가...

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

jwt 필터에서는 유저 역할만 체크하고 있어서 서비스 레이어에서 clubPermissionPolicy.requireAdmin()으로 어드민 권한을 검증하도록 수정했습니닷...!

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

Labels

📬 API 서버 API 통신

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants