-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c103bf1
commit c5341e0
Showing
20 changed files
with
310 additions
and
104 deletions.
There are no files selected for viewing
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
6 changes: 3 additions & 3 deletions
6
app/src/main/java/com/example/remind/data/model/response/ListData.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package com.example.remind.data.model.response | ||
|
||
data class ListData( | ||
val name: String="" | ||
) | ||
//data class ListData( | ||
// val name: String="" | ||
//) |
13 changes: 13 additions & 0 deletions
13
app/src/main/java/com/example/remind/data/model/response/MemberInfoResponse.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,13 @@ | ||
package com.example.remind.data.model.response | ||
|
||
data class MemberInfoResponse( | ||
val code: Int, | ||
val `data`: Info, | ||
val message: String | ||
) | ||
data class Info( | ||
val age: Int=0, | ||
val gender: String="", | ||
val imageUrl: String="", | ||
val name: String="" | ||
) |
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
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
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
20 changes: 20 additions & 0 deletions
20
...c/main/java/com/example/remind/domain/usecase/doctor_usecase/GetDoctorMoodChartUseCase.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,20 @@ | ||
package com.example.remind.domain.usecase.doctor_usecase | ||
|
||
import com.example.remind.data.model.response.MoodChartResponse | ||
import com.example.remind.data.network.adapter.ApiResult | ||
import com.example.remind.data.repository.doctor.DoctorRepository | ||
import javax.inject.Inject | ||
|
||
class GetDoctorMoodChartUseCase @Inject constructor( | ||
private val doctorRepository: DoctorRepository | ||
) { | ||
suspend operator fun invoke( | ||
year: Int, | ||
month: Int, | ||
day: Int, | ||
size: Int, | ||
memberId: Int | ||
): ApiResult<MoodChartResponse> { | ||
return doctorRepository.getMoodChart(year, month, day, size, memberId) | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
app/src/main/java/com/example/remind/domain/usecase/onboarding_usecase/MemberInfoUseCase.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,14 @@ | ||
package com.example.remind.domain.usecase.onboarding_usecase | ||
|
||
import com.example.remind.data.model.response.MemberInfoResponse | ||
import com.example.remind.data.network.adapter.ApiResult | ||
import com.example.remind.data.repository.auth.AuthRepository | ||
import javax.inject.Inject | ||
|
||
class MemberInfoUseCase @Inject constructor( | ||
private val authRepository: AuthRepository | ||
) { | ||
suspend operator fun invoke(memberId: Int): ApiResult<MemberInfoResponse> { | ||
return authRepository.getMemberInfo(memberId) | ||
} | ||
} |
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
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
Oops, something went wrong.