-
Notifications
You must be signed in to change notification settings - Fork 0
π :: (#104) - νΉμ νκ΅μμ μκ°ν μ‘°ν μλλ μ΄μ μμ #122
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 8 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
613e864
[Add] :: μκ°ν μ¬ μ‘°ν λ‘μ§ μΆκ°
khs3994 e8bcea3
[Add] :: μκ°ν μ‘°ν κ΄λ ¨ λ‘μ§ κ°μ
khs3994 22d01cf
[Chore] :: νκ΅ ν€ κ°μ΄ μ λλ‘ μ λ¬λμ§ μλ λ¬Έμ ν΄κ²°
khs3994 7eefbe8
[Chore] :: Ktor μμ§ Android μ΅μ ν λ μμ§μΌλ‘ λ³κ²½
khs3994 78e6c29
[Chore] :: λΉμ μ μ¬μλ λ‘μ§ μ κ±° λ° νκ΅ νμ
μ λ§μ§ μκ² λ°μ΄ν° νμ±νλ λΆλΆ μμ
khs3994 ef9274f
[Add] :: μ¬μλ λ‘μ§ μΆκ°
khs3994 6059dab
[Chore] :: μκ°ν μμ² λ‘μ§ λΆλ¦¬
khs3994 1359993
[Add] :: μ¬μλ λ‘μ§ κ΅¬ν
khs3994 e6c8845
Update domain/src/main/java/com/onmi/domain/usecase/timetable/GetTimeβ¦
khs3994 3fd84cb
Update domain/src/main/java/com/onmi/domain/model/school/SchoolType.kt
khs3994 6df4aef
Update domain/src/main/java/com/onmi/domain/usecase/timetable/GetTimeβ¦
khs3994 2d98d92
:fire: :: λ‘κ·Έ μ κ±°
khs3994 a683a8a
Merge remote-tracking branch 'origin/feature/104-fix-time-table-issueβ¦
khs3994 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
8 changes: 5 additions & 3 deletions
8
data/src/main/java/com/onmi/data/datasource/TimeTableDataSource.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,14 +1,16 @@ | ||
| package com.onmi.data.datasource | ||
|
|
||
| import com.onmi.domain.model.school.SchoolType | ||
|
|
||
| interface TimeTableDataSource { | ||
|
|
||
| suspend fun getTimeTable( | ||
| schoolCode: String, | ||
| schoolType: String, | ||
| schoolType: SchoolType, | ||
| educationCode: String, | ||
| grade: Int, | ||
| `class`: Int, | ||
| department: String, | ||
| department: String?, | ||
| date: String, | ||
| ): List<String> | ||
| ): List<String>? | ||
| } |
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
20 changes: 20 additions & 0 deletions
20
domain/src/main/java/com/onmi/domain/model/school/SchoolType.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,20 @@ | ||
| package com.onmi.domain.model.school | ||
|
|
||
| enum class SchoolType(val key: String) { | ||
| Elementary("els"), | ||
| Middle("mis"), | ||
| High("his"), | ||
| Special("sps"); | ||
|
|
||
| companion object { | ||
| fun convertSchoolTypeToKey(type: String): SchoolType { | ||
| return when (type) { | ||
| "μ΄λ±νκ΅" -> Elementary | ||
| "μ€νκ΅" -> Middle | ||
| "κ³ λ±νκ΅" -> High | ||
| "νΉμνκ΅" -> Special | ||
| else -> throw RuntimeException("μ μ μλ νκ΅ νμ μ λλ€.") | ||
| } | ||
| } | ||
| } | ||
| } | ||
8 changes: 5 additions & 3 deletions
8
domain/src/main/java/com/onmi/domain/repository/TimeTableRepository.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,14 +1,16 @@ | ||
| package com.onmi.domain.repository | ||
|
|
||
| import com.onmi.domain.model.school.SchoolType | ||
|
|
||
| interface TimeTableRepository { | ||
|
|
||
| suspend fun getTimeTable( | ||
| schoolCode: String, | ||
| schoolType: String, | ||
| schoolType: SchoolType, | ||
| educationCode: String, | ||
| grade: Int, | ||
| `class`: Int, | ||
| department: String, | ||
| department: String?, | ||
| date: String, | ||
| ): List<String> | ||
| ): List<String>? | ||
| } |
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
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.