Skip to content

Commit fcbfe31

Browse files
authored
Merge pull request #30 from PKUHPC/feat-delete-user-account
feat(mis): 新增删除用户与删除账户接口
2 parents b8e65c5 + 34942db commit fcbfe31

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

.changeset/moody-knives-argue.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@scow/scow-scheduler-adapter-interface": patch
3+
---
4+
5+
新增 deleteUser 和 deleteAccount 接口

protos/account.proto

+15
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ message QueryAccountBlockStatusResponse {
7272
bool blocked = 1;
7373
}
7474

75+
message DeleteAccountRequest {
76+
string account_name = 1;
77+
}
78+
79+
message DeleteAccountResponse {
80+
}
81+
7582
service AccountService {
7683

7784
/**
@@ -126,4 +133,12 @@ service AccountService {
126133
* NOT_FOUND, ACCOUNT_NOT_FOUND, {}
127134
*/
128135
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);
129144
}

protos/user.proto

+15
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ message QueryUserInAccountBlockStatusResponse {
5555
bool blocked = 1;
5656
}
5757

58+
message DeleteUserRequest {
59+
string user_id = 1;
60+
}
61+
62+
message DeleteUserResponse {
63+
}
64+
5865
service UserService {
5966
/*
6067
* description: add user to account
@@ -109,4 +116,12 @@ service UserService {
109116
* NOT_FOUND, USER_ACCOUNT_NOT_FOUND, {}
110117
*/
111118
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);
112127
}

0 commit comments

Comments
 (0)