diff --git a/app/src/main/java/com/sopt/now/compose/data/BaseState.kt b/app/src/main/java/com/sopt/now/compose/data/BaseState.kt new file mode 100644 index 0000000..846152a --- /dev/null +++ b/app/src/main/java/com/sopt/now/compose/data/BaseState.kt @@ -0,0 +1,12 @@ +package com.sopt.now.compose.data + +import kotlinx.serialization.SerialName +import kotlinx.serialization.Serializable + +@Serializable +data class BaseState( + @SerialName("isSuccess") + val isSuccess: Boolean, + @SerialName("message") + val message: String +) \ No newline at end of file diff --git a/app/src/main/java/com/sopt/now/compose/data/UserService.kt b/app/src/main/java/com/sopt/now/compose/data/UserService.kt new file mode 100644 index 0000000..f189db1 --- /dev/null +++ b/app/src/main/java/com/sopt/now/compose/data/UserService.kt @@ -0,0 +1,11 @@ +package com.sopt.now.compose.data + +import com.sopt.now.compose.data.dto.response.ResponseUserInfoDto +import retrofit2.Call +import retrofit2.http.GET + +interface UserService { + @GET("member/info") + fun userInfo( + ): Call +} \ No newline at end of file