From 991c7e02ba65953987e65f6e102bafa6ecdd2028 Mon Sep 17 00:00:00 2001 From: youjin09222 Date: Fri, 3 May 2024 23:26:50 +0900 Subject: [PATCH] =?UTF-8?q?add/#11:=20Dto=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../data/dto/request/RequestLoginDto.kt | 12 ++++++++++ .../data/dto/request/ResponseSignUpDto.kt | 16 +++++++++++++ .../data/dto/response/ResponseAuthDto.kt | 12 ++++++++++ .../data/dto/response/ResponseUserInfoDto.kt | 24 +++++++++++++++++++ 4 files changed, 64 insertions(+) create mode 100644 app/src/main/java/com/sopt/now/compose/data/dto/request/RequestLoginDto.kt create mode 100644 app/src/main/java/com/sopt/now/compose/data/dto/request/ResponseSignUpDto.kt create mode 100644 app/src/main/java/com/sopt/now/compose/data/dto/response/ResponseAuthDto.kt create mode 100644 app/src/main/java/com/sopt/now/compose/data/dto/response/ResponseUserInfoDto.kt diff --git a/app/src/main/java/com/sopt/now/compose/data/dto/request/RequestLoginDto.kt b/app/src/main/java/com/sopt/now/compose/data/dto/request/RequestLoginDto.kt new file mode 100644 index 0000000..edc8e42 --- /dev/null +++ b/app/src/main/java/com/sopt/now/compose/data/dto/request/RequestLoginDto.kt @@ -0,0 +1,12 @@ +package com.sopt.now.compose.data.dto.request + +import kotlinx.serialization.SerialName +import kotlinx.serialization.Serializable + +@Serializable +data class RequestLoginDto( + @SerialName("authenticationId") + val authenticationId: String, + @SerialName("password") + val password: String +) \ No newline at end of file diff --git a/app/src/main/java/com/sopt/now/compose/data/dto/request/ResponseSignUpDto.kt b/app/src/main/java/com/sopt/now/compose/data/dto/request/ResponseSignUpDto.kt new file mode 100644 index 0000000..c225397 --- /dev/null +++ b/app/src/main/java/com/sopt/now/compose/data/dto/request/ResponseSignUpDto.kt @@ -0,0 +1,16 @@ +package com.sopt.now.compose.data.dto.request + +import kotlinx.serialization.SerialName +import kotlinx.serialization.Serializable + +@Serializable +data class RequestSignUpDto( + @SerialName("authenticationId") + val authenticationId: String, + @SerialName("password") + val password: String, + @SerialName("nickname") + val nickname: String, + @SerialName("phone") + val phone: String, +) \ No newline at end of file diff --git a/app/src/main/java/com/sopt/now/compose/data/dto/response/ResponseAuthDto.kt b/app/src/main/java/com/sopt/now/compose/data/dto/response/ResponseAuthDto.kt new file mode 100644 index 0000000..070f99a --- /dev/null +++ b/app/src/main/java/com/sopt/now/compose/data/dto/response/ResponseAuthDto.kt @@ -0,0 +1,12 @@ +package com.sopt.now.compose.data.dto.response + +import kotlinx.serialization.SerialName +import kotlinx.serialization.Serializable + +@Serializable +data class ResponseAuthDto( + @SerialName("code") + val code: Int, + @SerialName("message") + val message: String, +) \ No newline at end of file diff --git a/app/src/main/java/com/sopt/now/compose/data/dto/response/ResponseUserInfoDto.kt b/app/src/main/java/com/sopt/now/compose/data/dto/response/ResponseUserInfoDto.kt new file mode 100644 index 0000000..de7d723 --- /dev/null +++ b/app/src/main/java/com/sopt/now/compose/data/dto/response/ResponseUserInfoDto.kt @@ -0,0 +1,24 @@ +package com.sopt.now.compose.data.dto.response + +import kotlinx.serialization.SerialName +import kotlinx.serialization.Serializable + +@Serializable +data class ResponseUserInfoDto( + @SerialName("code") + val code: Int, + @SerialName("message") + val message: String, + @SerialName("data") + val data: UserInfo +) + +@Serializable +data class UserInfo( + @SerialName("authenticationId") + val authenticationId: String, + @SerialName("nickname") + val nickname: String, + @SerialName("phone") + val phone: String +) \ No newline at end of file