Skip to content

Commit bfcd599

Browse files
committed
Update error code
1 parent c6ce214 commit bfcd599

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

pluto-kotlin-client-sdk/src/main/java/com/mushare/plutosdk/Pluto+User.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ fun Pluto.myInfo(
1818
completion = { header ->
1919
if (header == null) {
2020
handler?.setCall(null)
21-
error?.invoke(PlutoError.notSignin)
21+
error?.invoke(PlutoError.notSignIn)
2222
return@getAuthorizationHeader
2323
}
2424

@@ -105,7 +105,7 @@ private fun Pluto.updateUserInfo(
105105
completion = { header ->
106106
if (header == null) {
107107
handler?.setCall(null)
108-
error?.invoke(PlutoError.notSignin)
108+
error?.invoke(PlutoError.notSignIn)
109109
return@getAuthorizationHeader
110110
}
111111

pluto-kotlin-client-sdk/src/main/java/com/mushare/plutosdk/PlutoResponse.kt

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,22 @@ enum class PlutoError(val value: Int) {
4747
unknown(-99999),
4848
badRequest(-99998),
4949
parseError(-99997),
50-
notSignin(1001),
50+
notSignIn(1001),
5151
mailAlreadyRegister(2001),
5252
mailNotExist(2002),
5353
mailNotVerified(2003),
5454
mailAlreadyVerified(2004),
55-
userNameNotExist(2005),
56-
userNameExist(2006),
55+
userIdNotExist(2005),
56+
userIdExist(2006),
57+
passwordNotSet(2009),
5758
sendMailFailure(2011),
5859
invalidPassword(3001),
5960
invalidRefreshToken(3002),
60-
invalidJWTToken(3003);
61+
invalidJWTToken(3003),
62+
invalidGoogleIDToken(3004),
63+
invalidAvatarFormat(3006),
64+
jwtTokenExpired(3008),
65+
invalidAccessToken(3009),
66+
invalidApplication(3010),
67+
refreshTokenExpired(3011);
6168
}

0 commit comments

Comments
 (0)