-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 🔨agp 버전 업그레이드 * 🔨 북마크 최근 학사일정 조회 데이터 클래스, DTO 구현 * 🔨 북마크 전체, 최근 학사일정 조회 repository 구현 * 🔨 북마크 전체, 최근 학사일정 조회 UseCase 구현 * 🔨 북마크 전체, 최근 학사일정 조회 Api 구현 * 🗑️ 즐겨찾기 페이지 키워드 관련 부분 삭제, 프래그먼트 이름 변경 * 🔨️ KeywordManageFragment import 변경 * 🔨️ 바텀 내비게이션 마이 페이지 아이콘 -> 즐겨찾기 아이콘 변경 * 🔨️ 파일 이름 변경, 북마크 관련 부분 이동 * 🔨️ 파일 이름 변경 * 🔨️ 파일 이름 변경 * 🔨️최근 북마크 학사일정 조회 기능 구현 * 🔨️즐겨찾기한 학사일정, 공지사항 구현 * 🔨 홈 화면 학사일정 날짜 범위 수정 * 🔨 알림 페이지 DTO 수정, 빈 화면 출력 문구 * 🔨 토스트 메시지 수정
- Loading branch information
1 parent
912d244
commit 4e1aad6
Showing
45 changed files
with
1,202 additions
and
813 deletions.
There are no files selected for viewing
This file contains 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 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 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
10 changes: 10 additions & 0 deletions
10
...l/data/src/main/java/com/neverland/data/remote/model/univ/RecentBookmarkScheduleResDTO.kt
This file contains 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,10 @@ | ||
package com.neverland.data.remote.model.univ | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class RecentBookmarkScheduleResDTO( | ||
@SerializedName("endDate") val endDate: String, | ||
@SerializedName("id") val id: Int, | ||
@SerializedName("startDate") val startDate: String, | ||
@SerializedName("title") val title: String | ||
) |
This file contains 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 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 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
19 changes: 19 additions & 0 deletions
19
ThinkerBell/domain/src/main/java/com/neverland/domain/model/univ/BookmarkScheduleGroup.kt
This file contains 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,19 @@ | ||
package com.neverland.domain.model.univ | ||
|
||
data class BookmarkScheduleGroup( | ||
val year: Int, // 연도 추가 | ||
val month: String, | ||
val schedules: List<AcademicSchedule> | ||
) | ||
|
||
fun groupSchedulesByYearAndMonth(schedules: List<AcademicSchedule>): List<BookmarkScheduleGroup> { | ||
return schedules.groupBy { schedule -> | ||
// 날짜에서 연도와 월 추출 (예: "2024-09-10" -> "2024년", "9월") | ||
val dateParts = schedule.startDate.split("-") | ||
val year = dateParts[0].toInt() | ||
val month = dateParts[1] | ||
Pair(year, month) | ||
}.map { (yearMonthPair, schedules) -> | ||
BookmarkScheduleGroup(yearMonthPair.first, yearMonthPair.second, schedules) | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
ThinkerBell/domain/src/main/java/com/neverland/domain/model/univ/RecentBookmarkSchedule.kt
This file contains 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.neverland.domain.model.univ | ||
|
||
data class RecentBookmarkSchedule( | ||
val id: Int, | ||
val title: String, | ||
val startDate: String, | ||
val endDate: String | ||
) |
This file contains 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
13 changes: 13 additions & 0 deletions
13
.../domain/src/main/java/com/neverland/domain/usecase/bookmark/GetBookmarkScheduleUseCase.kt
This file contains 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,13 @@ | ||
package com.neverland.domain.usecase.bookmark | ||
|
||
import com.neverland.domain.model.univ.AcademicSchedule | ||
import com.neverland.domain.repository.BookmarkRepository | ||
import javax.inject.Inject | ||
|
||
class GetBookmarkScheduleUseCase @Inject constructor( | ||
private val repository: BookmarkRepository | ||
) { | ||
suspend operator fun invoke(ssaId: String): Result<List<AcademicSchedule>> { | ||
return repository.getScheduleBookmark(ssaId) | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...n/src/main/java/com/neverland/domain/usecase/bookmark/GetRecentBookmarkScheduleUseCase.kt
This file contains 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,13 @@ | ||
package com.neverland.domain.usecase.bookmark | ||
|
||
import com.neverland.domain.model.univ.RecentBookmarkSchedule | ||
import com.neverland.domain.repository.BookmarkRepository | ||
import javax.inject.Inject | ||
|
||
class GetRecentBookmarkScheduleUseCase @Inject constructor( | ||
private val repository: BookmarkRepository | ||
) { | ||
suspend operator fun invoke(ssaId: String): Result<List<RecentBookmarkSchedule>> { | ||
return repository.getRecentScheduleBookmark(ssaId) | ||
} | ||
} |
This file contains 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 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 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 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
65 changes: 0 additions & 65 deletions
65
...Bell/presentation/src/main/java/com/neverland/thinkerbell/view/myPage/FavoriteFragment.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.