-
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.
Merge pull request #44 from PawWithU/feature/organization_management
Feature/organization management: 봉사관리 완료
- Loading branch information
Showing
1,255 changed files
with
1,157 additions
and
39,421 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<background android:drawable="@color/ic_launcher_background"/> | ||
<foreground android:drawable="@mipmap/ic_launcher_foreground"/> | ||
</adaptive-icon> |
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,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<background android:drawable="@color/ic_launcher_background"/> | ||
<foreground android:drawable="@mipmap/ic_launcher_foreground"/> | ||
</adaptive-icon> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<color name="ic_launcher_background">#FFAC60</color> | ||
</resources> |
10 changes: 5 additions & 5 deletions
10
core/data/src/main/java/com/kusitms/connectdog/core/data/api/ApiService.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
44 changes: 44 additions & 0 deletions
44
core/data/src/main/java/com/kusitms/connectdog/core/data/api/InterApiService.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,44 @@ | ||
package com.kusitms.connectdog.core.data.api | ||
|
||
import com.kusitms.connectdog.core.data.api.model.VolunteerResponse | ||
import com.kusitms.connectdog.core.data.api.model.intermediator.InterApplicationCompletedResponseItem | ||
import com.kusitms.connectdog.core.data.api.model.intermediator.InterApplicationInProgressResponseItem | ||
import com.kusitms.connectdog.core.data.api.model.intermediator.InterApplicationRecruitingResponseItem | ||
import com.kusitms.connectdog.core.data.api.model.intermediator.InterApplicationWaitingResponseItem | ||
import retrofit2.http.GET | ||
import retrofit2.http.Path | ||
import retrofit2.http.Query | ||
|
||
internal interface InterApiService { | ||
/** | ||
* 봉사관리 | ||
*/ | ||
@GET("/intermediaries/posts/recruiting") | ||
suspend fun getApplicationRecruiting( | ||
@Query("page") page: Int?, | ||
@Query("size") size: Int? | ||
): List<InterApplicationRecruitingResponseItem> | ||
|
||
@GET("/intermediaries/applications/waiting") | ||
suspend fun getApplicationWaiting( | ||
@Query("page") page: Int?, | ||
@Query("size") size: Int? | ||
): List<InterApplicationWaitingResponseItem> | ||
|
||
@GET("/intermediaries/applications/progressing") | ||
suspend fun getApplicationProgressing( | ||
@Query("page") page: Int?, | ||
@Query("size") size: Int? | ||
): List<InterApplicationInProgressResponseItem> | ||
|
||
@GET("/intermediaries/applications/completed") | ||
suspend fun getApplicationCompleted( | ||
@Query("page") page: Int?, | ||
@Query("size") size: Int? | ||
): List<InterApplicationCompletedResponseItem> | ||
|
||
@GET("/intermediaries/applications/{applicationId}") | ||
suspend fun getApplicationVolunteer( | ||
@Path("applicationId") applicationId: Long | ||
): VolunteerResponse | ||
} |
18 changes: 18 additions & 0 deletions
18
...tms/connectdog/core/data/api/model/intermediator/InterApplicationCompletedResponseItem.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,18 @@ | ||
package com.kusitms.connectdog.core.data.api.model.intermediator | ||
|
||
import com.squareup.moshi.JsonClass | ||
|
||
@JsonClass(generateAdapter = true) | ||
data class InterApplicationCompletedResponseItem( | ||
val applicationId: Long, | ||
val arrivalLoc: String, | ||
val departureLoc: String, | ||
val dogName: String, | ||
val endDate: String, | ||
val mainImage: String, | ||
val postId: Long, | ||
val reviewId: Long?, | ||
val dogStatusId: Long?, | ||
val startDate: String, | ||
val volunteerName: String | ||
) |
16 changes: 16 additions & 0 deletions
16
...ms/connectdog/core/data/api/model/intermediator/InterApplicationInProgressResponseItem.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,16 @@ | ||
package com.kusitms.connectdog.core.data.api.model.intermediator | ||
|
||
import com.squareup.moshi.JsonClass | ||
|
||
@JsonClass(generateAdapter = true) | ||
data class InterApplicationInProgressResponseItem( | ||
val postId: Long, | ||
val applicationId: Long, | ||
val arrivalLoc: String, | ||
val departureLoc: String, | ||
val dogName: String, | ||
val endDate: String, | ||
val mainImage: String, | ||
val startDate: String, | ||
val volunteerName: String | ||
) |
16 changes: 16 additions & 0 deletions
16
...ms/connectdog/core/data/api/model/intermediator/InterApplicationRecruitingResponseItem.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,16 @@ | ||
package com.kusitms.connectdog.core.data.api.model.intermediator | ||
|
||
import com.squareup.moshi.JsonClass | ||
|
||
@JsonClass(generateAdapter = true) | ||
data class InterApplicationRecruitingResponseItem( | ||
val postId: Long, | ||
val arrivalLoc: String, | ||
val departureLoc: String, | ||
val dogName: String, | ||
val endDate: String, | ||
val mainImage: String, | ||
val postStatus: String, | ||
val startDate: String, | ||
val volunteerName: String? | ||
) |
17 changes: 17 additions & 0 deletions
17
...sitms/connectdog/core/data/api/model/intermediator/InterApplicationWaitingResponseItem.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,17 @@ | ||
package com.kusitms.connectdog.core.data.api.model.intermediator | ||
|
||
import com.squareup.moshi.JsonClass | ||
|
||
@JsonClass(generateAdapter = true) | ||
data class InterApplicationWaitingResponseItem( | ||
val applicationId: Long, | ||
val postId: Long, | ||
val applicationTime: String, | ||
val arrivalLoc: String, | ||
val departureLoc: String, | ||
val dogName: String, | ||
val endDate: String, | ||
val mainImage: String, | ||
val startDate: String, | ||
val volunteerName: String | ||
) |
2 changes: 1 addition & 1 deletion
2
...api/model/AnnouncementHomeResponseItem.kt → ...volunteer/AnnouncementHomeResponseItem.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
2 changes: 1 addition & 1 deletion
2
...i/model/AnnouncementSearchResponseItem.kt → ...lunteer/AnnouncementSearchResponseItem.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
2 changes: 1 addition & 1 deletion
2
...model/ApplicationCompletedResponseItem.kt → ...nteer/ApplicationCompletedResponseItem.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
2 changes: 1 addition & 1 deletion
2
...odel/ApplicationInProgressResponseItem.kt → ...teer/ApplicationInProgressResponseItem.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
2 changes: 1 addition & 1 deletion
2
...i/model/ApplicationWaitingResponseItem.kt → ...lunteer/ApplicationWaitingResponseItem.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
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
21 changes: 21 additions & 0 deletions
21
core/data/src/main/java/com/kusitms/connectdog/core/data/di/InterDataModule.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,21 @@ | ||
package com.kusitms.connectdog.core.data.di | ||
|
||
import com.kusitms.connectdog.core.data.api.InterApiService | ||
import com.kusitms.connectdog.core.data.repository.InterManagementRepository | ||
import com.kusitms.connectdog.core.data.repository.InterManagementRepositoryImpl | ||
import dagger.Module | ||
import dagger.Provides | ||
import dagger.hilt.InstallIn | ||
import dagger.hilt.components.SingletonComponent | ||
import javax.inject.Singleton | ||
|
||
@InstallIn(SingletonComponent::class) | ||
@Module | ||
internal class InterDataModule { | ||
|
||
@Provides | ||
@Singleton | ||
fun provideInterManagementRepository(apiService: InterApiService): InterManagementRepository { | ||
return InterManagementRepositoryImpl(apiService) | ||
} | ||
} |
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
60 changes: 0 additions & 60 deletions
60
core/data/src/main/java/com/kusitms/connectdog/core/data/mapper/ApplicationMapper.kt
This file was deleted.
Oops, something went wrong.
55 changes: 55 additions & 0 deletions
55
...main/java/com/kusitms/connectdog/core/data/mapper/intermediator/InterApplicationMapper.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,55 @@ | ||
package com.kusitms.connectdog.core.data.mapper.intermediator | ||
|
||
import com.kusitms.connectdog.core.data.api.model.intermediator.InterApplicationCompletedResponseItem | ||
import com.kusitms.connectdog.core.data.api.model.intermediator.InterApplicationInProgressResponseItem | ||
import com.kusitms.connectdog.core.data.api.model.intermediator.InterApplicationRecruitingResponseItem | ||
import com.kusitms.connectdog.core.data.api.model.intermediator.InterApplicationWaitingResponseItem | ||
import com.kusitms.connectdog.core.model.InterApplication | ||
import com.kusitms.connectdog.core.util.dateRangeFormat | ||
|
||
internal fun InterApplicationRecruitingResponseItem.toData(): InterApplication = | ||
InterApplication( | ||
imageUrl = mainImage, | ||
dogName = dogName, | ||
location = "${this.departureLoc} → ${this.arrivalLoc}", | ||
date = dateRangeFormat(startDate, endDate), | ||
volunteerName = volunteerName ?: "-", | ||
postId = postId, | ||
postStatus = postStatus | ||
) | ||
|
||
internal fun InterApplicationWaitingResponseItem.toData(): InterApplication = | ||
InterApplication( | ||
imageUrl = mainImage, | ||
dogName = dogName, | ||
location = "${this.departureLoc} → ${this.arrivalLoc}", | ||
date = dateRangeFormat(startDate, endDate), | ||
volunteerName = volunteerName, | ||
postId = postId, | ||
applicationTime = applicationTime, | ||
applicationId = applicationId | ||
) | ||
|
||
internal fun InterApplicationInProgressResponseItem.toData(): InterApplication = | ||
InterApplication( | ||
imageUrl = mainImage, | ||
dogName = dogName, | ||
location = "${this.departureLoc} → ${this.arrivalLoc}", | ||
date = dateRangeFormat(startDate, endDate), | ||
volunteerName = volunteerName, | ||
postId = postId, | ||
applicationId = applicationId | ||
) | ||
|
||
internal fun InterApplicationCompletedResponseItem.toData(): InterApplication = | ||
InterApplication( | ||
imageUrl = mainImage, | ||
dogName = dogName, | ||
location = "${this.departureLoc} → ${this.arrivalLoc}", | ||
date = dateRangeFormat(startDate, endDate), | ||
volunteerName = volunteerName, | ||
postId = postId, | ||
applicationId = applicationId, | ||
reviewId = reviewId, | ||
dogStatusId = dogStatusId | ||
) |
Oops, something went wrong.