Skip to content

Commit 8e0b3b3

Browse files
committed
feat: 增加删除用户账户等操作类型,但暂时不需要增加对应处理逻辑
1 parent 870d2fa commit 8e0b3b3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

protos/account.proto

+6-1
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ message SyncAccountInfo {
167167
message UserInAccount {
168168
string user_id = 1;
169169
bool blocked = 2;
170+
optional bool deleted = 3;
170171
}
171172
string account_name = 1;
172173
repeated UserInAccount users = 2;
@@ -177,6 +178,7 @@ message SyncAccountInfo {
177178
// if blocked_in_cluster is false, only unblock in specified paritions
178179
repeated string unblocked_partitions = 6;
179180
optional bool use_full_partitions = 7;
181+
optional bool deleted = 8;
180182
}
181183

182184
message SyncAccountUserInfoRequest {
@@ -195,11 +197,14 @@ message SyncAccountUserInfoResponse {
195197
ADD_USER_TO_ACCOUNT = 4;
196198
BLOCK_USER_IN_ACCOUNT = 5;
197199
REMOVE_USER_FROM_ACCOUNT = 6;
200+
UNBLOCK_USER_IN_ACCOUNT = 7;
201+
DELETE_ACCOUNT = 8;
202+
DELETE_USER = 9;s
198203
}
199204
message FailureInfo {
200205
SyncOperation sync_operation = 1;
201206
string failed_account_name = 2;
202-
// only exsits in users' failed operation of ADD_USER_TO_ACCOUNT, BLOCK_USER_IN_ACCOUNT or REMOVE_USER_FROM_ACCOUNT
207+
// only exists in users' failed operation of ADD_USER_TO_ACCOUNT, BLOCK_USER_IN_ACCOUNT or REMOVE_USER_FROM_ACCOUNT
203208
optional string failed_user_id = 3;
204209
string failed_message = 4;
205210
}

0 commit comments

Comments
 (0)