add: add change password methods
This commit is contained in:
@@ -6,6 +6,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);
|
||||
}
|
||||
|
||||
message GetAccountRequest {
|
||||
@@ -33,4 +34,18 @@ message GetAccountResponse {
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user