File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed
pluto-kotlin-client-sdk/src/main/java/com/mushare/plutosdk Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ fun Pluto.myInfo(
18
18
completion = { header ->
19
19
if (header == null ) {
20
20
handler?.setCall(null )
21
- error?.invoke(PlutoError .notSignin )
21
+ error?.invoke(PlutoError .notSignIn )
22
22
return @getAuthorizationHeader
23
23
}
24
24
@@ -105,7 +105,7 @@ private fun Pluto.updateUserInfo(
105
105
completion = { header ->
106
106
if (header == null ) {
107
107
handler?.setCall(null )
108
- error?.invoke(PlutoError .notSignin )
108
+ error?.invoke(PlutoError .notSignIn )
109
109
return @getAuthorizationHeader
110
110
}
111
111
Original file line number Diff line number Diff line change @@ -47,15 +47,22 @@ enum class PlutoError(val value: Int) {
47
47
unknown(- 99999 ),
48
48
badRequest(- 99998 ),
49
49
parseError(- 99997 ),
50
- notSignin (1001 ),
50
+ notSignIn (1001 ),
51
51
mailAlreadyRegister(2001 ),
52
52
mailNotExist(2002 ),
53
53
mailNotVerified(2003 ),
54
54
mailAlreadyVerified(2004 ),
55
- userNameNotExist(2005 ),
56
- userNameExist(2006 ),
55
+ userIdNotExist(2005 ),
56
+ userIdExist(2006 ),
57
+ passwordNotSet(2009 ),
57
58
sendMailFailure(2011 ),
58
59
invalidPassword(3001 ),
59
60
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 );
61
68
}
You can’t perform that action at this time.
0 commit comments