add system methods for admins
All checks were successful
Publish / Publish Job (push) Successful in 2m21s

This commit is contained in:
Дмитрий
2026-04-11 21:39:32 +03:00
parent bc8923b1f7
commit 40819206d6
2 changed files with 21 additions and 1 deletions

View File

@@ -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;
}