From 2eaed0a1c5a6b4ab16dd9bee38577a9d922f5629 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9?= Date: Sat, 4 Apr 2026 18:40:54 +0300 Subject: [PATCH] fix: rename change data request id -> user_id --- proto/account.proto | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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;