-
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.
Merge pull request #256 from boostcampwm2023/feat/and/find-password
비밀번호 찾기 기능 구현
- Loading branch information
Showing
33 changed files
with
1,079 additions
and
5 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
8 changes: 8 additions & 0 deletions
8
android/app/src/main/java/app/priceguard/data/dto/password/ResetPasswordRequest.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,8 @@ | ||
package app.priceguard.data.dto.password | ||
|
||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class ResetPasswordRequest( | ||
val password: String | ||
) |
9 changes: 9 additions & 0 deletions
9
android/app/src/main/java/app/priceguard/data/dto/password/ResetPasswordResponse.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,9 @@ | ||
package app.priceguard.data.dto.password | ||
|
||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class ResetPasswordResponse( | ||
val statusCode: Int, | ||
val message: String | ||
) |
8 changes: 8 additions & 0 deletions
8
...d/app/src/main/java/app/priceguard/data/dto/verifyemail/RequestVerificationCodeRequest.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,8 @@ | ||
package app.priceguard.data.dto.verifyemail | ||
|
||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class RequestVerificationCodeRequest( | ||
val email: String | ||
) |
9 changes: 9 additions & 0 deletions
9
.../app/src/main/java/app/priceguard/data/dto/verifyemail/RequestVerificationCodeResponse.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,9 @@ | ||
package app.priceguard.data.dto.verifyemail | ||
|
||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class RequestVerificationCodeResponse( | ||
val statusCode: Int, | ||
val message: String | ||
) |
9 changes: 9 additions & 0 deletions
9
android/app/src/main/java/app/priceguard/data/dto/verifyemail/VerifyEmailRequest.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,9 @@ | ||
package app.priceguard.data.dto.verifyemail | ||
|
||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class VerifyEmailRequest( | ||
val email: String, | ||
val verificationCode: String | ||
) |
10 changes: 10 additions & 0 deletions
10
android/app/src/main/java/app/priceguard/data/dto/verifyemail/VerifyEmailResponse.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,10 @@ | ||
package app.priceguard.data.dto.verifyemail | ||
|
||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class VerifyEmailResponse( | ||
val statusCode: Int, | ||
val message: String, | ||
val verifyToken: String? = null | ||
) |
9 changes: 9 additions & 0 deletions
9
android/app/src/main/java/app/priceguard/data/network/AuthAPI.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,14 +1,23 @@ | ||
package app.priceguard.data.network | ||
|
||
import app.priceguard.data.dto.renew.RenewResponse | ||
import app.priceguard.data.dto.verifyemail.VerifyEmailRequest | ||
import app.priceguard.data.dto.verifyemail.VerifyEmailResponse | ||
import retrofit2.Response | ||
import retrofit2.http.Body | ||
import retrofit2.http.GET | ||
import retrofit2.http.Header | ||
import retrofit2.http.POST | ||
|
||
interface AuthAPI { | ||
|
||
@GET("refreshJWT") | ||
suspend fun renewTokens( | ||
@Header("Authorization") authToken: String | ||
): Response<RenewResponse> | ||
|
||
@POST("verify/email") | ||
suspend fun verifyEmail( | ||
@Body verifyEmailRequest: VerifyEmailRequest | ||
): Response<VerifyEmailResponse> | ||
} |
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
2 changes: 2 additions & 0 deletions
2
android/app/src/main/java/app/priceguard/data/repository/token/TokenErrorState.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,7 +1,9 @@ | ||
package app.priceguard.data.repository.token | ||
|
||
enum class TokenErrorState { | ||
INVALID_REQUEST, | ||
UNAUTHORIZED, | ||
EXPIRED, | ||
NOT_FOUND, | ||
UNDEFINED_ERROR | ||
} |
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
5 changes: 5 additions & 0 deletions
5
android/app/src/main/java/app/priceguard/ui/data/VerifyEmailResult.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,5 @@ | ||
package app.priceguard.ui.data | ||
|
||
data class VerifyEmailResult( | ||
val verifyToken: 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
Oops, something went wrong.