upgrade: add blocked users and ip
All checks were successful
Publish / Publish Job (push) Successful in 2m28s
All checks were successful
Publish / Publish Job (push) Successful in 2m28s
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@lendry-erp/contracts",
|
||||
"version": "1.0.59",
|
||||
"version": "1.0.60",
|
||||
"description": "Protobuf definitions and generated TypeScript types",
|
||||
"type": "commonjs",
|
||||
"main": "./dist/index.js",
|
||||
|
||||
@@ -17,6 +17,11 @@ service AccountService {
|
||||
rpc UnlockPin (UnlockPinRequest) returns (UnlockPinResponse);
|
||||
rpc GetPinStatus (GetPinStatusRequest) returns (GetPinStatusResponse);
|
||||
rpc RemovePin (RemovePinRequest) returns (RemovePinResponse);
|
||||
|
||||
rpc BlockUser(BlockUserRequest) returns (BlockUserResponse);
|
||||
rpc UnblockUser(UnblockUserRequest) returns (UnblockUserResponse);
|
||||
rpc BlockIp(BlockIpRequest) returns (BlockIpResponse);
|
||||
rpc UnblockIp(UnblockIpRequest) returns (UnblockIpResponse);
|
||||
}
|
||||
|
||||
message GetAccountRequest {
|
||||
@@ -164,3 +169,30 @@ message RemovePinResponse {
|
||||
bool success = 1;
|
||||
string message = 2;
|
||||
}
|
||||
|
||||
|
||||
message BlockUserRequest {
|
||||
string user_id = 1; // Кого блокируем
|
||||
string admin_id = 2; // Кто блокирует
|
||||
optional string reason = 3;
|
||||
}
|
||||
message BlockUserResponse { bool success = 1; string message = 2; }
|
||||
|
||||
message UnblockUserRequest {
|
||||
string user_id = 1;
|
||||
string admin_id = 2;
|
||||
}
|
||||
message UnblockUserResponse { bool success = 1; string message = 2; }
|
||||
|
||||
message BlockIpRequest {
|
||||
string ip_address = 1;
|
||||
string admin_id = 2;
|
||||
optional string reason = 3;
|
||||
}
|
||||
message BlockIpResponse { bool success = 1; string message = 2; }
|
||||
|
||||
message UnblockIpRequest {
|
||||
string ip_address = 1;
|
||||
string admin_id = 2;
|
||||
}
|
||||
message UnblockIpResponse { bool success = 1; string message = 2; }
|
||||
Reference in New Issue
Block a user