diff --git a/proto/account.proto b/proto/account.proto index 7cc897f..bc8e8c8 100644 --- a/proto/account.proto +++ b/proto/account.proto @@ -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 ChangeData(ChangeDataRequest) returns (ChangeDataResponse); rpc SetPin (SetPinRequest) returns (SetPinResponse); rpc UnlockPin (UnlockPinRequest) returns (UnlockPinResponse); rpc GetPinStatus (GetPinStatusRequest) returns (GetPinStatusResponse); @@ -51,6 +52,23 @@ message ChangePasswordResponse { string message = 2; } +message ChangeDataRequest { + string user_id = 1; + string session_id = 2; + optional string email = 3; + optional string phone = 4; + optional string full_name = 5; + optional string avatar_url = 6; + optional string custom_status_text = 7; + optional string custom_status_emoji = 8; + optional string timezone = 9; + optional string language = 10; +} + +message ChangeDataResponse { + bool success = 1; + string message = 2; +} message SetPinRequest { string user_id = 1;