Skip to content

Commit

Permalink
add/#11: UserService 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
youjin09222 committed May 3, 2024
1 parent 415a9f8 commit ce8733d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/src/main/java/com/sopt/now/compose/data/BaseState.kt
Original file line number Diff line number Diff line change
@@ -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
)
11 changes: 11 additions & 0 deletions app/src/main/java/com/sopt/now/compose/data/UserService.kt
Original file line number Diff line number Diff line change
@@ -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<ResponseUserInfoDto>
}

0 comments on commit ce8733d

Please sign in to comment.