-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #85 from ttoklip/feat/#15_첫화면로그인_구현
[feat] 로그인 api 연결
- Loading branch information
Showing
25 changed files
with
564 additions
and
225 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
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
6 changes: 6 additions & 0 deletions
6
app/src/main/java/com/umc/ttoklip/data/model/login/LoginLocalRequest.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,6 @@ | ||
package com.umc.ttoklip.data.model.login | ||
|
||
data class LoginLocalRequest( | ||
val email:String, | ||
val password:String, | ||
) |
11 changes: 11 additions & 0 deletions
11
app/src/main/java/com/umc/ttoklip/data/model/signup/SignupLocalRequest.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.umc.ttoklip.data.model.signup | ||
|
||
data class SignupLocalRequest( | ||
val email:String, | ||
val password:String, | ||
val originName:String, | ||
val nickname:String, | ||
val independentYear:Int, | ||
val independentMonth:Int, | ||
val street:String, | ||
) |
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 |
---|---|---|
|
@@ -7,4 +7,4 @@ data class SignupRequest( | |
val profileImage:String, | ||
val independentYear:Int, | ||
val independentMonth:Int | ||
) | ||
) |
6 changes: 6 additions & 0 deletions
6
app/src/main/java/com/umc/ttoklip/data/model/signup/VerifyRequest.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,6 @@ | ||
package com.umc.ttoklip.data.model.signup | ||
|
||
data class VerifyRequest( | ||
val email:String, | ||
val verifyCode:String | ||
) |
2 changes: 2 additions & 0 deletions
2
app/src/main/java/com/umc/ttoklip/data/repository/login/LoginRepository.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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
package com.umc.ttoklip.data.repository.login | ||
|
||
import com.umc.ttoklip.data.model.login.LoginLocalRequest | ||
import com.umc.ttoklip.data.model.login.LoginRequest | ||
import com.umc.ttoklip.data.model.login.LoginResponse | ||
import com.umc.ttoklip.module.NetworkResult | ||
|
||
interface LoginRepository { | ||
suspend fun postLogin(request: LoginRequest): NetworkResult<LoginResponse> | ||
suspend fun postLoginLocal(request:LoginLocalRequest): NetworkResult<LoginResponse> | ||
} |
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
10 changes: 10 additions & 0 deletions
10
app/src/main/java/com/umc/ttoklip/data/repository/signup/SignupRepository.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 |
---|---|---|
@@ -1,17 +1,27 @@ | ||
package com.umc.ttoklip.data.repository.signup | ||
|
||
import com.umc.ttoklip.data.model.StandardResponse | ||
import com.umc.ttoklip.data.model.signup.SignupRequest | ||
import com.umc.ttoklip.data.model.signup.SignupResponse | ||
import com.umc.ttoklip.data.model.signup.VerifyRequest | ||
import com.umc.ttoklip.module.NetworkResult | ||
import okhttp3.MultipartBody | ||
import okhttp3.RequestBody | ||
|
||
interface SignupRepository { | ||
suspend fun verifySend(request:VerifyRequest):NetworkResult<StandardResponse> | ||
suspend fun verifyCheck(request: VerifyRequest):NetworkResult<StandardResponse> | ||
suspend fun checkId(id:String):NetworkResult<StandardResponse> | ||
suspend fun checkNickname(nick:String): NetworkResult<SignupResponse> | ||
suspend fun checkNicknameLocal(nick:String): NetworkResult<SignupResponse> | ||
suspend fun savePrivacy(photo: MultipartBody.Part, | ||
info:MutableMap<String, RequestBody> | ||
,cate:List<MultipartBody.Part>) | ||
: NetworkResult<SignupResponse> | ||
suspend fun savePrivacyLocal(photo: MultipartBody.Part, | ||
info: MutableMap<String, RequestBody>, | ||
cate: List<MultipartBody.Part>) | ||
: NetworkResult<SignupResponse> | ||
// suspend fun savePrivacy(userInfo:SignupRequest) | ||
// : NetworkResult<SignupResponse> | ||
} |
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
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
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
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
Oops, something went wrong.