-
Notifications
You must be signed in to change notification settings - Fork 3
[FEAT] 메뉴판 Api 구현 #53
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
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
0a93f56
[feat]: 메뉴 폴더 top app bar 화면 이동 구현 (#50)
Nico1eKim a37c7b5
[feat]: 메뉴 폴더 상세 화면 이동, 뒤로가기 구현 (#50)
Nico1eKim 0e5517f
[feat]: 메뉴 상세 화면, 메뉴 상세 지도 화면으로 이동 구현 (#50)
Nico1eKim 06d6845
[feat]: 메뉴 추가 버튼 이동 구현 (#50)
Nico1eKim 087e7f0
[feat]: 전체 메뉴 보기 이동 구현 (#50)
Nico1eKim 32ffa9e
[ui]: 필터 바텀시트 ui 구현 (#50)
Nico1eKim 17c5557
[refactor]: 기존 구현됐던 바텀시트 수정 (#50)
Nico1eKim 4645d53
[feat]: 바텀시트 기능 구현 중 (#50)
Nico1eKim 82f18ee
[fix]: 초기화 기능 수정 (#50)
Nico1eKim 7932912
[fix]: 바텀시트 오류 수정 (#50)
Nico1eKim 24be41d
[fix]: 필터 개수 반영 안되는거 수정 (#50)
Nico1eKim 8d56eda
[fix]: conflict 해결 (#50)
Nico1eKim 9dd4ee8
[UI]: 정렬 드롭다운 컴포넌트 생성 (#50)
Nico1eKim f42ef94
[fix]: toast message 오류 수정 (#50)
Nico1eKim 0701450
[UI]: 드롭다운 색상 수정 (#50)
Nico1eKim 817a897
[feat]: 정렬 드롭다운 적용하기 (#50)
Nico1eKim 24b3579
[fix]: api BASE_URL문제 해결 (#50)
Nico1eKim b618c2e
[feat]: menuFolder Response 생성 (#50)
Nico1eKim cd7edc8
[feat]: menuFolder Service 작성 (#50)
Nico1eKim ab24a8b
[feat]: menuFolder Repository 생성 (#50)
Nico1eKim be6fa4a
[feat]: menuFolder ViewModel 작성 (#50)
Nico1eKim 2408653
[feat]: service module 수정 (#50)
Nico1eKim e6f5f0c
[feat]: menuFolderIconType enum 생성 (#50)
Nico1eKim 1687bcd
[feat]: menuFolder api 연결 로직 작성 (#50)
Nico1eKim 5ae5f94
[feat]: coil 세팅 (#50)
Nico1eKim 0069c34
[fix]: api 연결 오류 수정 (#50)
Nico1eKim c3fc627
[chore]: 필요없는 주석 삭제 (#50)
Nico1eKim 6816929
[fix]: 버전 바뀐거 되돌리기 (#50)
Nico1eKim 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
36 changes: 36 additions & 0 deletions
36
app/src/main/java/com/kuit/ourmenu/data/model/menuFolder/response/MenuFolderIconType.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,36 @@ | ||
| package com.kuit.ourmenu.data.model.menuFolder.response | ||
|
|
||
| enum class MenuFolderIconType { | ||
| ANGRY, | ||
| BAEKSUK, | ||
| BASKET, | ||
| BREAD, | ||
| CLOUD, | ||
| COFFEE, | ||
| CONGRATS, | ||
| COUPLE, | ||
| CRY, | ||
| DICE, | ||
| DOUGHNUT, | ||
| FIRE, | ||
| FISH, | ||
| FISH_BREAD, | ||
| HAMBURGER, | ||
| HEART, | ||
| ICE_CREAM, | ||
| JJAMBBONG, | ||
| LEAF, | ||
| MAN, | ||
| MEAT, | ||
| NOODLE, | ||
| PEOPLE, | ||
| RAMEN, | ||
| RICE, | ||
| SMILE, | ||
| SNOWMAN, | ||
| SPOON_AND_CHOPSTICK, | ||
| SUN, | ||
| SUNNY, | ||
| SUSHI, | ||
| TABLE, | ||
| } |
13 changes: 13 additions & 0 deletions
13
app/src/main/java/com/kuit/ourmenu/data/model/menuFolder/response/MenuFolderResponse.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 com.kuit.ourmenu.data.model.menuFolder.response | ||
|
|
||
| import kotlinx.serialization.Serializable | ||
|
|
||
| @Serializable | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 😭 |
||
| data class MenuFolderResponse( | ||
| val menuFolderId: Int, | ||
| val menuFolderTitle: String, | ||
| val menuFolderUrl: String, | ||
| val menuFolderIcon: String, | ||
| val menuIds: List<Int>, | ||
| val index: Int, | ||
| ) | ||
15 changes: 15 additions & 0 deletions
15
app/src/main/java/com/kuit/ourmenu/data/repository/MenuFolderRepository.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.kuit.ourmenu.data.repository | ||
|
|
||
| import com.kuit.ourmenu.data.model.base.handleBaseResponse | ||
| import com.kuit.ourmenu.data.service.MenuFolderService | ||
| import javax.inject.Inject | ||
| import javax.inject.Singleton | ||
|
|
||
| @Singleton | ||
| class MenuFolderRepository @Inject constructor( | ||
| private val menuFolderService: MenuFolderService, | ||
| ) { | ||
| suspend fun getMenuFolders() = runCatching { | ||
| menuFolderService.getMenuFolders().handleBaseResponse().getOrThrow() | ||
| } | ||
| } |
10 changes: 10 additions & 0 deletions
10
app/src/main/java/com/kuit/ourmenu/data/service/MenuFolderService.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,10 @@ | ||
| package com.kuit.ourmenu.data.service | ||
|
|
||
| import com.kuit.ourmenu.data.model.base.BaseResponse | ||
| import com.kuit.ourmenu.data.model.menuFolder.response.MenuFolderResponse | ||
| import retrofit2.http.GET | ||
|
|
||
| interface MenuFolderService { | ||
| @GET("api/menu-folders") | ||
| suspend fun getMenuFolders(): BaseResponse<List<MenuFolderResponse>> | ||
| } |
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.
이거는 적용하면 어떻게 되는 걸까요 ??
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.
똑같이 적용은 되는데 .toString으로 하면 얘가 못읽길래 수정해씀미닷 ~