-
Notifications
You must be signed in to change notification settings - Fork 0
[Refactor] search, my #100
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
37 commits
Select commit
Hold shift + click to select a range
50c8f16
Merge remote-tracking branch 'origin/feat-home-extra' into feat-home-β¦
t1nm1ksun a9a3dca
[feat] #94: ν μΆκ°μ 보 μλΉμ€ ꡬν
t1nm1ksun 50c4ec2
[feat] #94: ν μΆκ°μ 보 λ°μ΄ν°μμ€ κ΅¬ν
t1nm1ksun 69daa7a
[feat] #94: ν μΆκ°μ 보 λ ν¬μ§ν 리 ꡬν
t1nm1ksun 8c3cd82
[feat] #94: ν μΆκ°μ 보 λ§€νΌ κ΅¬ν
t1nm1ksun 9681cc8
[feat] #94: ν μΆκ°μ 보 μ μ€μΌμ΄μ€ ꡬν
t1nm1ksun 5e19227
[chore] #94: λ―Έμ¬μ© μ½λ μμ λ° ν΄λλ§
t1nm1ksun d92cdf0
[feat] #94: ν μΆκ°μ 보 μμ‘΄μ± μ£Όμ
t1nm1ksun b1528c7
[chore] #94: ν΄λλ§μ λ°λ₯Έ μν¬νΈ μμ
t1nm1ksun 3909a24
[chore] #94: ν μΆκ°μ 보 UI λΆκΈ°μ²λ¦¬ μμ
t1nm1ksun eee9be5
Merge remote-tracking branch 'origin/feat-home-api' into feat-home-exβ¦
t1nm1ksun a276b24
resolve conflict
t1nm1ksun e3d1692
Merge remote-tracking branch 'origin/develop' into feat-home-extra-api
t1nm1ksun 2a9da01
resolve conflict
t1nm1ksun 4d9776b
[fix] #94 보νΈμΌν°,보νΈλΆμ μλ² μλ΅ lastId nullableλ‘ μμ
t1nm1ksun 055beee
[feat] #94 νμ ꡬμ λλ‘λ€μ΄ ꡬν
t1nm1ksun 14d671b
[feat] #94 νμ ꡬμ λλ‘λ€μ΄ ꡬν
t1nm1ksun 1772370
[fix] #94 νμ ꡬμ λλ‘λ€μ΄ μ»΄ν¬λνΈ μμ
t1nm1ksun 41df451
[feat] #94 νμ ꡬμ api μ°λ
t1nm1ksun e8359ab
[feat] #94: νλ° λ°±μ€ν μΆκ°
t1nm1ksun 9adaf89
[feat] #94: λ€μ΄λ² μ§λ ꡬν
t1nm1ksun 7b0b23d
[feat] #94: νμμΉ, νμ§λμμ κ²μ ꡬν
t1nm1ksun f540ad4
[fix] #99 : MyInterestResponseDto μλ² μλ΅κ³Ό λΆμΌμΉ λ¬Έμ ν΄κ²° λ° null μ²λ¦¬
nasohee 19ecd0f
Merge remote-tracking branch 'origin/develop' into feat-home-extra-api
t1nm1ksun 1825897
conflict resolve
t1nm1ksun 330672d
Merge remote-tracking branch 'origin/feat-home-extra-api' into refactβ¦
nasohee 1364b19
#99 : νλ‘νμ΄λ―Έμ§μμ νκΈ° api μμ
nasohee e7efdc6
.
nasohee 655ead1
[refactor] #99 : μ§μ νν° Location Data -> apiμ μ©
nasohee 1702303
[refactor] #99 : λ²μ μ 보 Firebaseμμ κ°μ Έμ€κΈ°
nasohee 0165666
[feat] #99 : λ‘κ·Έμμ, νν΄ μ ν ν° μμ
nasohee 8801068
.
nasohee adc82b7
#99 : μ‘°ννκΈ° μλ¨ λ°°λ μ¬λ°± μΆκ°
nasohee 01f8943
[refactor] #99 : κΈ°λ³Έ μ΄λ―Έμ§ νμμΌλ‘ λ³κ²½
nasohee bc5292f
[refactor]: #99 νμ΄μ§ μ€λ³΅ νΈμΆ λ°©μ§
nasohee 3fc2116
[refactor] #99 : μλ¦Ό μ€μ off μ²λ¦¬
nasohee 4e80d84
[refactor] #99 : μ½λλλΉ λ¦¬λ·°λ°γ
γ
nasohee 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
2 changes: 1 addition & 1 deletion
2
app/src/main/java/com/example/findu/data/dataremote/datasource/HomeRemoteDataSource.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
31 changes: 31 additions & 0 deletions
31
...src/main/java/com/example/findu/data/dataremote/datasource/InformationRemoteDataSource.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,31 @@ | ||
| package com.example.findu.data.dataremote.datasource | ||
|
|
||
| import com.example.findu.data.dataremote.model.base.BaseResponse | ||
| import com.example.findu.data.dataremote.model.response.information.VolunteersResponseDto | ||
| import com.example.findu.data.dataremote.model.response.information.CentersResponseDto | ||
| import com.example.findu.data.dataremote.model.response.information.DepartmentsResponseDto | ||
| import com.example.findu.data.dataremote.model.response.information.SidoListDto | ||
| import com.example.findu.data.dataremote.model.response.information.SigunguListDto | ||
|
|
||
| interface InformationRemoteDataSource { | ||
| suspend fun getVolunteers( | ||
| lastId: Long? = Long.MAX_VALUE, | ||
| ): BaseResponse<VolunteersResponseDto> | ||
nasohee marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| suspend fun getCenters( | ||
| lastId: Long? = Long.MAX_VALUE, | ||
| sido: String? = null, | ||
| sigungu: String? = null, | ||
| lat: Double? = null, | ||
| long: Double? = null | ||
| ): BaseResponse<CentersResponseDto> | ||
|
|
||
| suspend fun getDepartments( | ||
| district: String? = null, | ||
| lastId: Long? = Long.MAX_VALUE, | ||
| ): BaseResponse<DepartmentsResponseDto> | ||
|
|
||
| suspend fun getSido(): BaseResponse<SidoListDto> | ||
|
|
||
| suspend fun getSigungu(sidoId:Long): BaseResponse<SigunguListDto> | ||
| } | ||
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
39 changes: 39 additions & 0 deletions
39
.../java/com/example/findu/data/dataremote/datasourceimpl/InformationRemoteDataSourceImpl.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,39 @@ | ||
| package com.example.findu.data.dataremote.datasourceimpl | ||
|
|
||
| import com.example.findu.data.dataremote.datasource.InformationRemoteDataSource | ||
| import com.example.findu.data.dataremote.model.base.BaseResponse | ||
| import com.example.findu.data.dataremote.model.response.information.CentersResponseDto | ||
| import com.example.findu.data.dataremote.model.response.information.DepartmentsResponseDto | ||
| import com.example.findu.data.dataremote.model.response.information.SidoListDto | ||
| import com.example.findu.data.dataremote.model.response.information.SigunguListDto | ||
| import com.example.findu.data.dataremote.model.response.information.VolunteersResponseDto | ||
| import com.example.findu.data.dataremote.service.InformationService | ||
| import javax.inject.Inject | ||
|
|
||
| class InformationRemoteDataSourceImpl @Inject constructor( | ||
| private val informationService: InformationService | ||
| ) : InformationRemoteDataSource { | ||
|
|
||
| override suspend fun getVolunteers( | ||
| lastId: Long? | ||
| ): BaseResponse<VolunteersResponseDto> = informationService.getVolunteers(lastId) | ||
|
|
||
| override suspend fun getCenters( | ||
| lastId: Long?, | ||
| sido: String?, | ||
| sigungu: String?, | ||
| lat: Double?, | ||
| long: Double? | ||
| ): BaseResponse<CentersResponseDto> = informationService.getCenters(lastId, sido, sigungu, lat, long) | ||
|
|
||
|
|
||
| override suspend fun getDepartments( | ||
| district: String?, | ||
| lastId: Long? | ||
| ): BaseResponse<DepartmentsResponseDto> = informationService.getDepartments(district, lastId) | ||
|
|
||
| override suspend fun getSido(): BaseResponse<SidoListDto> = informationService.getSido() | ||
|
|
||
| override suspend fun getSigungu(sidoId:Long): BaseResponse<SigunguListDto> = informationService.getSigungu(sidoId = sidoId) | ||
|
|
||
| } |
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
2 changes: 1 addition & 1 deletion
2
...aremote/model/response/HomeResponseDto.kt β ...te/model/response/home/HomeResponseDto.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
31 changes: 31 additions & 0 deletions
31
...n/java/com/example/findu/data/dataremote/model/response/information/CentersResponseDto.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,31 @@ | ||
| package com.example.findu.data.dataremote.model.response.information | ||
|
|
||
| import kotlinx.serialization.SerialName | ||
| import kotlinx.serialization.Serializable | ||
|
|
||
| @Serializable | ||
| data class CentersResponseDto( | ||
| @SerialName("centers") | ||
| val centers: List<CenterDto>, | ||
|
|
||
| @SerialName("lastId") | ||
| val lastId: Long?, | ||
|
|
||
| @SerialName("isLast") | ||
| val isLast: Boolean | ||
| ) | ||
|
|
||
| @Serializable | ||
| data class CenterDto( | ||
| @SerialName("jurisdiction") | ||
| val jurisdiction: List<String>, | ||
|
|
||
| @SerialName("centerName") | ||
| val centerName: String, | ||
|
|
||
| @SerialName("phoneNumber") | ||
| val phoneNumber: String, | ||
|
|
||
| @SerialName("address") | ||
| val address: String | ||
| ) |
29 changes: 29 additions & 0 deletions
29
...va/com/example/findu/data/dataremote/model/response/information/DepartmentsResponseDto.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,29 @@ | ||
| package com.example.findu.data.dataremote.model.response.information | ||
|
|
||
| import kotlinx.serialization.SerialName | ||
| import kotlinx.serialization.Serializable | ||
|
|
||
|
|
||
| @Serializable | ||
| data class DepartmentsResponseDto( | ||
| @SerialName("departments") | ||
| val departments: List<DepartmentDto>, | ||
|
|
||
| @SerialName("lastId") | ||
| val lastId: Long?, | ||
|
|
||
| @SerialName("isLast") | ||
| val isLast: Boolean | ||
| ) | ||
|
|
||
| @Serializable | ||
| data class DepartmentDto( | ||
| @SerialName("departmentName") | ||
| val departmentName: String, | ||
|
|
||
| @SerialName("district") | ||
| val district: String, | ||
|
|
||
| @SerialName("phoneNumber") | ||
| val phoneNumber: String | ||
| ) |
18 changes: 18 additions & 0 deletions
18
...src/main/java/com/example/findu/data/dataremote/model/response/information/SidoListDto.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,18 @@ | ||
| package com.example.findu.data.dataremote.model.response.information | ||
|
|
||
| import kotlinx.serialization.SerialName | ||
| import kotlinx.serialization.Serializable | ||
|
|
||
| @Serializable | ||
| data class SidoListDto( | ||
| @SerialName("sidoList") | ||
| val sidoList: List<SidoItemDto> | ||
| ) | ||
|
|
||
| @Serializable | ||
| data class SidoItemDto( | ||
| @SerialName("id") | ||
| val id: Long, | ||
| @SerialName("name") | ||
| val name: String | ||
| ) |
10 changes: 10 additions & 0 deletions
10
.../main/java/com/example/findu/data/dataremote/model/response/information/SigunguListDto.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.example.findu.data.dataremote.model.response.information | ||
|
|
||
| import kotlinx.serialization.SerialName | ||
| import kotlinx.serialization.Serializable | ||
|
|
||
| @Serializable | ||
| data class SigunguListDto( | ||
| @SerialName("sigunguList") | ||
| val sigunguList: List<String> | ||
| ) |
30 changes: 30 additions & 0 deletions
30
...ava/com/example/findu/data/dataremote/model/response/information/VolunteersResponseDto.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,30 @@ | ||
| package com.example.findu.data.dataremote.model.response.information | ||
|
|
||
| import kotlinx.serialization.SerialName | ||
| import kotlinx.serialization.Serializable | ||
|
|
||
| @Serializable | ||
| data class VolunteersResponseDto( | ||
| @SerialName("volunteerWorks") | ||
| val volunteerWorks: List<VolunteerWorkDto>, | ||
| @SerialName("lastId") | ||
| val lastId: Long, | ||
| @SerialName("isLast") | ||
| val isLast: Boolean | ||
| ) | ||
|
|
||
| @Serializable | ||
| data class VolunteerWorkDto( | ||
| @SerialName("institution") | ||
| val institution: String, | ||
| @SerialName("recruitmentPeriod") | ||
| val recruitmentPeriod: String, | ||
| @SerialName("address") | ||
| val address: String, | ||
| @SerialName("workPeriod") | ||
| val workPeriod: String, | ||
| @SerialName("workTime") | ||
| val workTime: String, | ||
| @SerialName("webLink") | ||
| val webLink: 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
2 changes: 1 addition & 1 deletion
2
app/src/main/java/com/example/findu/data/dataremote/service/HomeService.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
43 changes: 43 additions & 0 deletions
43
app/src/main/java/com/example/findu/data/dataremote/service/InformationService.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,43 @@ | ||
| package com.example.findu.data.dataremote.service | ||
|
|
||
| import com.example.findu.data.dataremote.model.base.BaseResponse | ||
| import com.example.findu.data.dataremote.model.response.home.HomeResponseDto | ||
nasohee marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| import com.example.findu.data.dataremote.model.response.information.CentersResponseDto | ||
| import com.example.findu.data.dataremote.model.response.information.DepartmentsResponseDto | ||
| import com.example.findu.data.dataremote.model.response.information.SidoListDto | ||
| import com.example.findu.data.dataremote.model.response.information.SigunguListDto | ||
| import com.example.findu.data.dataremote.model.response.information.VolunteersResponseDto | ||
| import com.example.findu.data.dataremote.util.ApiConstraints.API | ||
| import com.example.findu.data.dataremote.util.ApiConstraints.INFORMATION | ||
| import com.example.findu.data.dataremote.util.ApiConstraints.VERSION | ||
| import retrofit2.http.GET | ||
| import retrofit2.http.Query | ||
|
|
||
| interface InformationService { | ||
| @GET("/$API/$VERSION/$INFORMATION/volunteer-works") | ||
| suspend fun getVolunteers( | ||
| @Query("lastId") lastId: Long? = Long.MAX_VALUE, | ||
| ): BaseResponse<VolunteersResponseDto> | ||
|
|
||
| @GET("/$API/$VERSION/$INFORMATION/protection-centers") | ||
| suspend fun getCenters( | ||
| @Query("lastId") lastId: Long? = Long.MAX_VALUE, | ||
| @Query("sido") sido: String? = null, | ||
| @Query("sigungu") sigungu: String? = null, | ||
| @Query("lat") lat: Double? = null, | ||
| @Query("long") long: Double? = null | ||
| ): BaseResponse<CentersResponseDto> | ||
|
|
||
| @GET("/$API/$VERSION/$INFORMATION/departments") | ||
| suspend fun getDepartments( | ||
| @Query("district") district: String? = null, | ||
| @Query("lastId") lastId: Long? = Long.MAX_VALUE, | ||
| ): BaseResponse<DepartmentsResponseDto> | ||
|
|
||
| @GET("/$API/$VERSION/sidos") | ||
| suspend fun getSido(): BaseResponse<SidoListDto> | ||
|
|
||
| @GET("/$API/$VERSION/sigungus") | ||
| suspend fun getSigungu( | ||
| @Query("sidoId") sidoId: Long): BaseResponse<SigunguListDto> | ||
| } | ||
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.