-
Notifications
You must be signed in to change notification settings - Fork 0
[WTH-475] 캘린더 api 구현 #99
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
Merged
The head ref may contain hidden characters: "feat/WTH-475-\uCE98\uB9B0\uB354-API-\uAD6C\uD604"
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
11d63dd
feat: EventRepository/SessionRepository에 기수별 월별 조회 쿼리 추가
woneeeee 37ee6bb
feat: 일정 상세 조회 응답 DTO 및 AttendanceReader 메서드 추가
woneeeee 7b9b082
feat: 월별/상세 일정 조회 API 추가
woneeeee 7a8b21a
test: 월별/상세 일정 조회 QueryService 테스트 추가
woneeeee f2aff8e
style: ScheduleAttendanceStatus 주석 공백 ktlint 수정
woneeeee 1484edf
fix: AttendeeResponse 직급 → 권한으로 용어 통일
woneeeee eddb8c6
fix: 출석 가능 시간 ±10분 기준으로 출석 상태 도출 수정
woneeeee 6d9d861
chore: 연도별 일정 조회 API Deprecated 처리
woneeeee File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
15 changes: 15 additions & 0 deletions
15
src/main/kotlin/com/weeth/domain/schedule/application/dto/response/AttendeeResponse.kt
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| package com.weeth.domain.schedule.application.dto.response | ||
|
|
||
| import com.weeth.domain.club.domain.enums.MemberRole | ||
| import io.swagger.v3.oas.annotations.media.Schema | ||
|
|
||
| data class AttendeeResponse( | ||
| @field:Schema(description = "이름", example = "홍길동") | ||
| val name: String, | ||
| @field:Schema(description = "학과", example = "컴퓨터공학과") | ||
| val department: String?, | ||
| @field:Schema(description = "권한", example = "USER") | ||
| val role: MemberRole, | ||
| @field:Schema(description = "프로필 이미지 URL") | ||
| val profileImageUrl: String?, | ||
| ) |
8 changes: 8 additions & 0 deletions
8
...ain/kotlin/com/weeth/domain/schedule/application/dto/response/ScheduleAttendanceStatus.kt
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| package com.weeth.domain.schedule.application.dto.response | ||
|
|
||
| enum class ScheduleAttendanceStatus { | ||
| UPCOMING, // 출석 예정 | ||
| OPEN, // 지금 출석 가능 | ||
| COMPLETED, // 출석 완료 | ||
| ABSENT, // 결석 | ||
| } |
32 changes: 32 additions & 0 deletions
32
src/main/kotlin/com/weeth/domain/schedule/application/dto/response/ScheduleDetailResponse.kt
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| package com.weeth.domain.schedule.application.dto.response | ||
|
|
||
| import com.weeth.domain.schedule.domain.enums.Type | ||
| import io.swagger.v3.oas.annotations.media.Schema | ||
| import java.time.LocalDateTime | ||
|
|
||
| data class ScheduleDetailResponse( | ||
| @field:Schema(description = "일정 ID", example = "1") | ||
| val id: Long, | ||
| @field:Schema(description = "일정 유형", example = "SESSION") | ||
| val type: Type, | ||
| @field:Schema(description = "제목", example = "1주차 정기모임") | ||
| val title: String, | ||
| @field:Schema(description = "설명") | ||
| val description: String?, | ||
| @field:Schema(description = "장소", example = "가천대 체육관") | ||
| val location: String?, | ||
| @field:Schema(description = "시작 시간") | ||
| val start: LocalDateTime, | ||
| @field:Schema(description = "종료 시간") | ||
| val end: LocalDateTime, | ||
| @field:Schema(description = "생성자 이름", example = "홍길동") | ||
| val creatorName: String?, | ||
| @field:Schema(description = "내 출석 상태 (SESSION만, EVENT는 null)") | ||
| val myAttendanceStatus: ScheduleAttendanceStatus?, | ||
| @field:Schema(description = "출석 완료 시간 (COMPLETED일 때만, 나머지는 null)") | ||
| val attendedAt: LocalDateTime?, | ||
| @field:Schema(description = "총 참석자 수 (SESSION만, EVENT는 null)") | ||
| val totalAttendees: Int?, | ||
| @field:Schema(description = "참석자 목록 (SESSION만, EVENT는 null)") | ||
| val attendees: List<AttendeeResponse>?, | ||
| ) |
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
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
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if 문 대신 쓰면 좋을 kotlin 문법입니당 한 번 찾아보시면 좋을 것 같아용
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
넵 감사합니당~~👍🏻