generated from NOW-SOPT-ANDROID/now-sopt-android-template
-
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.
- Loading branch information
1 parent
415a9f8
commit ce8733d
Showing
2 changed files
with
23 additions
and
0 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
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
11
app/src/main/java/com/sopt/now/compose/data/UserService.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,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> | ||
} |