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:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@lendry-erp/contracts",
|
"name": "@lendry-erp/contracts",
|
||||||
"version": "1.2.16",
|
"version": "1.2.17",
|
||||||
"description": "Protobuf definitions and generated TypeScript types",
|
"description": "Protobuf definitions and generated TypeScript types",
|
||||||
"type": "commonjs",
|
"type": "commonjs",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
|
|||||||
@@ -14,10 +14,13 @@ service AuthService {
|
|||||||
rpc GetSessions(GetSessionRequest) returns (GetSessionsResponse);
|
rpc GetSessions(GetSessionRequest) returns (GetSessionsResponse);
|
||||||
rpc TerminateSession(TerminateSessionRequest) returns (TerminateSessionResponse);
|
rpc TerminateSession(TerminateSessionRequest) returns (TerminateSessionResponse);
|
||||||
|
|
||||||
|
// Системные методы для админа
|
||||||
rpc SystemCreateAccount (SystemCreateAccountRequest) returns (SystemCreateAccountResponse);
|
rpc SystemCreateAccount (SystemCreateAccountRequest) returns (SystemCreateAccountResponse);
|
||||||
rpc SystemChangeStatus (SystemChangeStatusRequest) returns (SystemChangeStatusResponse);
|
rpc SystemChangeStatus (SystemChangeStatusRequest) returns (SystemChangeStatusResponse);
|
||||||
rpc SystemUpdatePassword (SystemUpdatePasswordRequest) returns (SystemUpdatePasswordResponse);
|
rpc SystemUpdatePassword (SystemUpdatePasswordRequest) returns (SystemUpdatePasswordResponse);
|
||||||
rpc SystemUpdatePin (SystemUpdatePinRequest) returns (SystemUpdatePinResponse);
|
rpc SystemUpdatePin (SystemUpdatePinRequest) returns (SystemUpdatePinResponse);
|
||||||
|
rpc SystemBlockIp(SystemBlockIpRequest) returns (SystemBlockIpResponse);
|
||||||
|
rpc SystemUnblockIp(SystemUnblockIpRequest) returns (SystemUnblockIpResponse);
|
||||||
}
|
}
|
||||||
|
|
||||||
message LoginRequest {
|
message LoginRequest {
|
||||||
@@ -133,3 +136,20 @@ message SystemUpdatePinRequest {
|
|||||||
|
|
||||||
message SystemUpdatePinResponse { bool success = 1; }
|
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