add system methods for admins
All checks were successful
Publish / Publish Job (push) Successful in 2m21s
All checks were successful
Publish / Publish Job (push) Successful in 2m21s
This commit is contained in:
@@ -14,10 +14,13 @@ service AuthService {
|
||||
rpc GetSessions(GetSessionRequest) returns (GetSessionsResponse);
|
||||
rpc TerminateSession(TerminateSessionRequest) returns (TerminateSessionResponse);
|
||||
|
||||
// Системные методы для админа
|
||||
rpc SystemCreateAccount (SystemCreateAccountRequest) returns (SystemCreateAccountResponse);
|
||||
rpc SystemChangeStatus (SystemChangeStatusRequest) returns (SystemChangeStatusResponse);
|
||||
rpc SystemUpdatePassword (SystemUpdatePasswordRequest) returns (SystemUpdatePasswordResponse);
|
||||
rpc SystemUpdatePin (SystemUpdatePinRequest) returns (SystemUpdatePinResponse);
|
||||
rpc SystemBlockIp(SystemBlockIpRequest) returns (SystemBlockIpResponse);
|
||||
rpc SystemUnblockIp(SystemUnblockIpRequest) returns (SystemUnblockIpResponse);
|
||||
}
|
||||
|
||||
message LoginRequest {
|
||||
@@ -133,3 +136,20 @@ message SystemUpdatePinRequest {
|
||||
|
||||
message SystemUpdatePinResponse { bool success = 1; }
|
||||
|
||||
message SystemBlockIpRequest {
|
||||
string ip_address = 1;
|
||||
string admin_id = 2;
|
||||
optional string reason = 3;
|
||||
}
|
||||
|
||||
message SystemBlockIpResponse {
|
||||
bool success = 1;
|
||||
}
|
||||
|
||||
message SystemUnblockIpRequest {
|
||||
string ip_address = 1;
|
||||
}
|
||||
|
||||
message SystemUnblockIpResponse {
|
||||
bool success = 2;
|
||||
}
|
||||
Reference in New Issue
Block a user