2 Commits

Author SHA1 Message Date
Дмитрий
1221bc490a add: add change password methods
All checks were successful
Publish / Publish Job (push) Successful in 2m37s
2026-04-03 15:45:26 +03:00
Дмитрий
75b8bd5af5 add: add change password methods 2026-04-03 15:45:09 +03:00
2 changed files with 16 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "@lendry-erp/contracts", "name": "@lendry-erp/contracts",
"version": "1.0.38", "version": "1.0.39",
"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",

View File

@@ -6,6 +6,7 @@ option go_package = "git.lendry.ru/lendry-erp/proto.git/go;pb";
service AccountService { service AccountService {
rpc GetAccount(GetAccountRequest) returns (GetAccountResponse); rpc GetAccount(GetAccountRequest) returns (GetAccountResponse);
rpc ChangePassword (ChangePasswordRequest) returns (ChangePasswordResponse);
} }
message GetAccountRequest { message GetAccountRequest {
@@ -33,4 +34,18 @@ message GetAccountResponse {
bool has_pin = 18; bool has_pin = 18;
} }
message ChangePasswordRequest {
string user_id = 1;
string old_password = 2;
string new_password = 3;
optional string code = 4;
optional string pin = 5;
}
message ChangePasswordResponse {
bool success = 1;
string message = 2;
}