From e45c6f6cef51d2494b71e99cdef860c8c68924b0 Mon Sep 17 00:00:00 2001 From: seunghee17 Date: Fri, 17 May 2024 00:14:37 +0900 Subject: [PATCH] =?UTF-8?q?[feat]=20=ED=99=98=EC=9E=90=20=EC=98=A8?= =?UTF-8?q?=EB=B3=B4=EB=94=A9=20=EC=88=98=EC=A0=95=20=EC=99=84=EB=A3=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../data/network/service/AuthService.kt | 1 - .../data/network/service/PatientService.kt | 4 ++ .../screens/patience/MoodChartScreen.kt | 24 ----------- .../patience_detail/PatienceDetailScreen.kt | 40 ------------------- 4 files changed, 4 insertions(+), 65 deletions(-) create mode 100644 app/src/main/java/com/example/remind/data/network/service/PatientService.kt diff --git a/app/src/main/java/com/example/remind/data/network/service/AuthService.kt b/app/src/main/java/com/example/remind/data/network/service/AuthService.kt index a8e6227..06f0148 100644 --- a/app/src/main/java/com/example/remind/data/network/service/AuthService.kt +++ b/app/src/main/java/com/example/remind/data/network/service/AuthService.kt @@ -10,7 +10,6 @@ import com.example.remind.data.network.adapter.ApiResult import retrofit2.http.Body import retrofit2.http.POST -//용도에 따라 나누기 interface AuthService { @POST("/member/refresh") suspend fun updateToken( diff --git a/app/src/main/java/com/example/remind/data/network/service/PatientService.kt b/app/src/main/java/com/example/remind/data/network/service/PatientService.kt new file mode 100644 index 0000000..97762c9 --- /dev/null +++ b/app/src/main/java/com/example/remind/data/network/service/PatientService.kt @@ -0,0 +1,4 @@ +package com.example.remind.data.network.service + +interface PatientService { +} \ No newline at end of file diff --git a/app/src/main/java/com/example/remind/feature/screens/patience/MoodChartScreen.kt b/app/src/main/java/com/example/remind/feature/screens/patience/MoodChartScreen.kt index 40cc517..23407cc 100644 --- a/app/src/main/java/com/example/remind/feature/screens/patience/MoodChartScreen.kt +++ b/app/src/main/java/com/example/remind/feature/screens/patience/MoodChartScreen.kt @@ -28,14 +28,6 @@ import com.example.remind.R import com.example.remind.core.common.component.BasicButton import com.example.remind.core.common.component.BasicTextButton import com.example.remind.core.designsystem.theme.RemindTheme -import com.example.remind.feature.screens.auth.onboarding.typeButton -import com.kakao.sdk.auth.model.OAuthToken -import com.kakao.sdk.common.model.ClientError -import com.kakao.sdk.common.model.ClientErrorCause -import com.kakao.sdk.user.UserApiClient -import com.patrykandpatrick.vico.compose.chart.Chart -import com.patrykandpatrick.vico.compose.style.ChartStyle -import com.patrykandpatrick.vico.views.chart.line.lineChart @Composable fun MoodChartScreen() { @@ -80,22 +72,6 @@ fun MoodChartScreen() { } } -//@Composable -//fun MoodChart( -// modifier: Modifier = Modifier -//) { -// Box( -// modifier = modifier -// .background(RemindTheme.colors.white, shape = RoundedCornerShape(12.dp)) -// .border(width = 1.dp, color = RemindTheme.colors.grayscale_2, shape = RoundedCornerShape(12.dp)) -// ) { -// Chart( -// modifier = modifier.align(Alignment.Center), -// chart = lineChart(), -// chartModelProducer = -// ) -// } -//} @Preview @Composable diff --git a/app/src/main/java/com/example/remind/feature/screens/patience_detail/PatienceDetailScreen.kt b/app/src/main/java/com/example/remind/feature/screens/patience_detail/PatienceDetailScreen.kt index bf4051c..93c2d73 100644 --- a/app/src/main/java/com/example/remind/feature/screens/patience_detail/PatienceDetailScreen.kt +++ b/app/src/main/java/com/example/remind/feature/screens/patience_detail/PatienceDetailScreen.kt @@ -1,19 +1,8 @@ package com.example.remind.feature.screens.patience_detail -import android.content.Context import androidx.compose.foundation.layout.Column import androidx.compose.runtime.Composable -import androidx.compose.ui.platform.LocalContext -import androidx.compose.ui.tooling.preview.Preview import com.example.remind.core.designsystem.theme.RemindTheme -import com.patrykandpatrick.vico.compose.axis.horizontal.bottomAxis -import com.patrykandpatrick.vico.compose.axis.vertical.startAxis -import com.patrykandpatrick.vico.compose.chart.Chart -import com.patrykandpatrick.vico.core.entry.ChartEntryModelProducer -import com.patrykandpatrick.vico.core.entry.FloatEntry -import com.patrykandpatrick.vico.core.marker.Marker -import com.patrykandpatrick.vico.views.chart.line.lineChart -import kotlin.random.Random @Composable fun PatienceDetailScreen() { @@ -22,33 +11,4 @@ fun PatienceDetailScreen() { } } -} - -@Composable -fun MoodGraph(context : Context) { - val producer = ChartEntryModelProducer(getRandomEntries()) - Chart( - chart = lineChart( - context, - - ), - chartModelProducer = producer, - startAxis = startAxis(), - bottomAxis = bottomAxis() - ) -} - -fun getRandomEntries() = List(size=5) { - 25f * Random.nextFloat() -}.mapIndexed { x, y -> - FloatEntry( - x = x.toFloat(), - y=y - ) -} - -@Composable -@Preview -fun ScreenPreview() { - MoodGraph(context = LocalContext.current) } \ No newline at end of file