Repository navigation
๐ :: (#565) ๊ณต์ง์ฌํญ ๋ชฉ๋ก ์ ์ฒด ์กฐํ ์ฒ๋ฆฌ #569
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
ashxom
merged 15 commits into
develop
from
bug/565-๊ณต์ง์ฌํญ-๋ชฉ๋ก-์ ์ฒด-์กฐํ-์ฒ๋ฆฌ
Nov 20, 2026
The head ref may contain hidden characters: "bug/565-\uACF5\uC9C0\uC0AC\uD56D-\uBAA9\uB85D-\uC804\uCCB4-\uC870\uD68C-\uCC98\uB9AC"
Merged
Changes from 12 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
1e6e67c
feat :: ๊ณต์ง์ฌํญ ํ์ด์ง ์ ์๋ต ์ถ๊ฐ
ashxom 94370c8
feat :: ๊ณต์ง์ฌํญ ๊ฐ์ ์กฐํ ๊ฒฝ๋ก ์ถ๊ฐ
ashxom 9790c8c
feat :: ๊ณต์ง์ฌํญ ํ์ด์ง ์กฐํ API ์ถ๊ฐ
ashxom 9898cf2
feat :: ๊ณต์ง์ฌํญ ํ์ด์ง ์กฐํ ๋ฐ์ดํฐ์์ค ์ถ๊ฐ
ashxom b6e2bf4
feat :: ๊ณต์ง์ฌํญ ํ์ด์ง ์กฐํ ๋ฐ์ดํฐ์์ค ๊ตฌํ ์ถ๊ฐ
ashxom 2fcd402
feat :: ๊ณต์ง์ฌํญ ํ์ด์ง ์กฐํ Repository ์ถ๊ฐ
ashxom 40951ca
feat :: ๊ณต์ง์ฌํญ ํ์ด์ง ์กฐํ Repository ๊ตฌํ ์ถ๊ฐ
ashxom 040789a
feat :: ๊ณต์ง์ฌํญ ํ์ด์ง ์ Entity ์ถ๊ฐ
ashxom a09a01e
feat :: ๊ณต์ง์ฌํญ ํ์ด์ง ์ UseCase ์ถ๊ฐ
ashxom 51b5fdc
fix :: ๊ณต์ง์ฌํญ ํ์ด์ง ์กฐํ UseCase ์์
ashxom 1af264e
feat :: ๊ณต์ง์ฌํญ ๋ชฉ๋ก ํ์ด์ง๋ค์ด์
์ถ๊ฐ
ashxom afdd2d7
feat :: ๊ณต์ง์ฌํญ ๋ค์ ํ์ด์ง ์กฐํ UI ์ถ๊ฐ
ashxom 4d1d5d9
fix :: ๊ณต์ง์ฌํญ ๋ชฉ๋ก ์กฐํ ์์ ์ฑ ์์
ashxom 5231789
fix :: ๊ณต์ง์ฌํญ ๋ค์ ํ์ด์ง ์์ฒญ ์์น ์์
ashxom 4df466b
fix :: ๊ณต์ง์ฌํญ ๋ค์ ํ์ด์ง ์ฌ์์ฒญ ๋ฐฉ์ง ์์
ashxom 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
6 changes: 5 additions & 1 deletion
6
core/data/src/main/java/team/retum/data/repository/notice/NoticeRepository.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 |
|---|---|---|
| @@ -1,9 +1,13 @@ | ||
| package team.retum.data.repository.notice | ||
|
|
||
| import team.retum.network.model.response.notice.FetchNoticeDetailsResponse | ||
| import team.retum.network.model.response.notice.FetchNoticesCountResponse | ||
| import team.retum.network.model.response.notice.FetchNoticesResponse | ||
|
|
||
| interface NoticeRepository { | ||
| suspend fun fetchNotices(): FetchNoticesResponse | ||
| suspend fun fetchNotices(page: Long): FetchNoticesResponse | ||
|
|
||
| suspend fun fetchNoticesCount(): FetchNoticesCountResponse | ||
|
|
||
| suspend fun fetchNoticeDetails(noticeId: Long): FetchNoticeDetailsResponse | ||
| } |
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
11 changes: 11 additions & 0 deletions
11
core/domain/src/main/java/team/retum/usecase/entity/notice/NoticesCountEntity.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,11 @@ | ||
| package team.retum.usecase.entity.notice | ||
|
|
||
| import team.retum.network.model.response.notice.FetchNoticesCountResponse | ||
|
|
||
| data class NoticesCountEntity( | ||
| val totalPageCount: Long, | ||
| ) | ||
|
|
||
| internal fun FetchNoticesCountResponse.toEntity() = NoticesCountEntity( | ||
| totalPageCount = totalPageCount, | ||
| ) |
13 changes: 13 additions & 0 deletions
13
core/domain/src/main/java/team/retum/usecase/usecase/notice/FetchNoticesCountUseCase.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,13 @@ | ||
| package team.retum.usecase.usecase.notice | ||
|
|
||
| import team.retum.data.repository.notice.NoticeRepository | ||
| import team.retum.usecase.entity.notice.toEntity | ||
| import javax.inject.Inject | ||
|
|
||
| class FetchNoticesCountUseCase @Inject constructor( | ||
| private val noticeRepository: NoticeRepository, | ||
| ) { | ||
| suspend operator fun invoke() = runCatching { | ||
| noticeRepository.fetchNoticesCount().toEntity() | ||
| } | ||
| } |
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
6 changes: 5 additions & 1 deletion
6
core/network/src/main/java/team/retum/network/datasource/notice/NoticeDataSource.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 |
|---|---|---|
| @@ -1,9 +1,13 @@ | ||
| package team.retum.network.datasource.notice | ||
|
|
||
| import team.retum.network.model.response.notice.FetchNoticeDetailsResponse | ||
| import team.retum.network.model.response.notice.FetchNoticesCountResponse | ||
| import team.retum.network.model.response.notice.FetchNoticesResponse | ||
|
|
||
| interface NoticeDataSource { | ||
| suspend fun fetchNotices(): FetchNoticesResponse | ||
| suspend fun fetchNotices(page: Long): FetchNoticesResponse | ||
|
|
||
| suspend fun fetchNoticesCount(): FetchNoticesCountResponse | ||
|
|
||
| suspend fun fetchNoticeDetails(noticeId: Long): FetchNoticeDetailsResponse | ||
| } |
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
9 changes: 9 additions & 0 deletions
9
...twork/src/main/java/team/retum/network/model/response/notice/FetchNoticesCountResponse.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,9 @@ | ||
| package team.retum.network.model.response.notice | ||
|
|
||
| import com.squareup.moshi.Json | ||
| import com.squareup.moshi.JsonClass | ||
|
|
||
| @JsonClass(generateAdapter = true) | ||
| data class FetchNoticesCountResponse( | ||
| @Json(name = "total_page_count") val totalPageCount: Long, | ||
| ) |
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.
Uh oh!
There was an error while loading. Please reload this page.