From 6a474084c83e5a03e851b178f520c3ab8c52bb69 Mon Sep 17 00:00:00 2001 From: Sergey Krylov Date: Sun, 8 Feb 2026 11:38:45 +0300 Subject: [PATCH] feat: add change account methods --- proto/account.proto | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/proto/account.proto b/proto/account.proto index 13a89a4..5027c78 100644 --- a/proto/account.proto +++ b/proto/account.proto @@ -4,6 +4,10 @@ package account.v1; service AccountService { rpc GetAccount(GetAccountRequest) returns (GetAccountResponse); + rpc InitEmailChange(InitEmailChangeRequest) returns (InitEmailChangeResponse); + rpc ConfirmEmailChange(ConfirmEmailChangeRequest) returns (ConfirmEmailChangeResponse); + rpc InitPhoneChange(InitPhoneChangeRequest) returns (InitPhoneChangeResponse); + rpc ConfirmPhoneChange(ConfirmPhoneChangeRequest) returns (ConfirmPhoneChangeResponse); } message GetAccountRequest { @@ -22,3 +26,37 @@ enum Role { USER = 0; ADMIN = 1; } + +message InitEmailChangeRequest { + string email = 1; + string user_id = 2; +} +message InitEmailChangeResponse { + bool ok = 1; +} + +message ConfirmEmailChangeRequest { + string email = 1; + string code = 2; + string user_id = 3; +} +message ConfirmEmailChangeResponse { + bool ok = 1; +} + + +message InitPhoneChangeRequest { + string phone = 1; + string user_id = 2; +} +message InitPhoneChangeResponse { + bool ok = 1; +} +message ConfirmPhoneChangeRequest { + string phone = 1; + string code = 2; + string user_id = 3; +} +message ConfirmPhoneChangeResponse { + bool ok = 1; +}