Skip to content

Commit 337b23f

Browse files
authored
Update auth related code (#67)
1 parent 6550bc0 commit 337b23f

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

client/protocol.go

+13-5
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,22 @@ const (
129129
InternalRequestTimeOut int32 = 712
130130
InternalRequestRetryError int32 = 713
131131

132-
AuthenticationError int32 = 800
132+
InitAuthError int32 = 800
133133
WrongLoginPassword int32 = 801
134134
NotLogin int32 = 802
135135
NoPermission int32 = 803
136-
UninitializedAuthError int32 = 804
137-
UserNotExist int32 = 805
138-
RoleNotExist int32 = 806
139-
ClearPermissionCacheError int32 = 807
136+
UserNotExist int32 = 804
137+
UserAlreadyExist int32 = 805
138+
UserAlreadyHasRole int32 = 806
139+
UserNotHasRole int32 = 807
140+
RoleNotExist int32 = 808
141+
RoleAlreadyExist int32 = 809
142+
AlreadyHasPrivilege int32 = 810
143+
NotHasPrivilege int32 = 811
144+
ClearPermissionCacheError int32 = 812
145+
UnknownAuthPrivilege int32 = 813
146+
UnsupportedAuthOperation int32 = 814
147+
AuthIoException int32 = 815
140148

141149
MigrateRegionError int32 = 900
142150
CreateRegionError int32 = 901

0 commit comments

Comments
 (0)