[web-35-1] 관리자 캘린더 일정 조회 API 구현#25
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
작업 내용
관리자 페이지에서 캘린더 일정을 조회할 수 있는 API를 구현합니다. 년별 조회(월별 그룹)와 월별 조회를 별도 엔드포인트로 분리
변경 사항
GET /api/v1/admin/calendar년별 조회 엔드포인트 구현GET /api/v1/admin/calendar/month월별 조회 엔드포인트 구현CalendarMonthlyResponseDto추가 (월별 그룹 응답)CalendarScheduleRepository에findByDateRange()추가API
캘린더 년별 조회 (월별 그룹)
GET /api/v1/admin/calendar?year=2026Request: Query Parameter
year(필수)Response:
200 OK{ "success": true, "data": [ { "yearMonth": "2026-05", "schedules": [ { "calendarId": 1, "title": "MT", "startDate": "2026-05-01", "endDate": "2026-05-03" } ] }, { "yearMonth": "2026-06", "schedules": [ { "calendarId": 8, "title": "정기모임", "startDate": "2026-06-10", "endDate": "2026-06-10" } ] } ] }캘린더 월별 조회
GET /api/v1/admin/calendar/month?year=2026&month=7Request: Query Parameter
year(필수),month(필수)Response:
200 OK{ "success": true, "data": [ { "calendarId": 3, "title": "Hackathon", "startDate": "2026-07-05", "endDate": "2026-07-06" }, { "calendarId": 2, "title": "Summer MT", "startDate": "2026-07-10", "endDate": "2026-07-12" } ] }테스트