File tree 3 files changed +35
-0
lines changed
3 files changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @scow/scow-scheduler-adapter-interface " : patch
3
+ ---
4
+
5
+ 新增 deleteUser 和 deleteAccount 接口
Original file line number Diff line number Diff line change @@ -72,6 +72,13 @@ message QueryAccountBlockStatusResponse {
72
72
bool blocked = 1 ;
73
73
}
74
74
75
+ message DeleteAccountRequest {
76
+ string account_name = 1 ;
77
+ }
78
+
79
+ message DeleteAccountResponse {
80
+ }
81
+
75
82
service AccountService {
76
83
77
84
/**
@@ -126,4 +133,12 @@ service AccountService {
126
133
* NOT_FOUND, ACCOUNT_NOT_FOUND, {}
127
134
*/
128
135
rpc QueryAccountBlockStatus (QueryAccountBlockStatusRequest ) returns (QueryAccountBlockStatusResponse );
136
+
137
+ /*
138
+ * description: delete account
139
+ * errors:
140
+ * - account not exist
141
+ * NOT_FOUND, ACCOUNT_NOT_FOUND, {}
142
+ */
143
+ rpc DeleteAccount (DeleteAccountRequest ) returns (DeleteAccountResponse );
129
144
}
Original file line number Diff line number Diff line change @@ -55,6 +55,13 @@ message QueryUserInAccountBlockStatusResponse {
55
55
bool blocked = 1 ;
56
56
}
57
57
58
+ message DeleteUserRequest {
59
+ string user_id = 1 ;
60
+ }
61
+
62
+ message DeleteUserResponse {
63
+ }
64
+
58
65
service UserService {
59
66
/*
60
67
* description: add user to account
@@ -109,4 +116,12 @@ service UserService {
109
116
* NOT_FOUND, USER_ACCOUNT_NOT_FOUND, {}
110
117
*/
111
118
rpc QueryUserInAccountBlockStatus (QueryUserInAccountBlockStatusRequest ) returns (QueryUserInAccountBlockStatusResponse );
119
+
120
+ /*
121
+ * description: delete user
122
+ * errors:
123
+ * - user not exist
124
+ * NOT_FOUND, USER_NOT_FOUND, {}
125
+ */
126
+ rpc DeleteUser (DeleteUserRequest ) returns (DeleteUserResponse );
112
127
}
You can’t perform that action at this time.
0 commit comments