add admin reset password method
All checks were successful
Publish / Publish Job (push) Successful in 2m39s

This commit is contained in:
Дмитрий
2026-04-08 10:37:38 +03:00
parent 86b69cb3a0
commit f5c3ac168d
2 changed files with 12 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ option go_package = "git.lendry.ru/lendry-erp/proto.git/go;pb";
service AccountService {
rpc GetAccount(GetAccountRequest) returns (GetAccountResponse);
rpc ChangePassword (ChangePasswordRequest) returns (ChangePasswordResponse);
rpc AdminResetPassword (AdminResetPasswordRequest) returns (AdminResetPasswordResponse);
rpc CreateUser(CreateUserRequest) returns (CreateUserResponse);
rpc DeleteUser(DeleteUserRequest) returns (DeleteUserResponse);
rpc ChangeData(ChangeDataRequest) returns (ChangeDataResponse);
@@ -92,6 +93,16 @@ message ChangeDataResponse {
string message = 2;
}
message AdminResetPasswordRequest {
string user_id = 1;
string new_password = 2;
}
message AdminResetPasswordResponse {
bool success = 1;
string message = 2;
}
message SetPinRequest {
string user_id = 1;
string session_id = 2;