From e0c66e2868e384b9aa5572812cb1f8f0685158ec Mon Sep 17 00:00:00 2001 From: nfel Date: Mon, 7 Jul 2025 15:30:53 +0330 Subject: [PATCH] v2: user adress message Signed-off-by: nfel --- auth/v1/msg.proto | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/auth/v1/msg.proto b/auth/v1/msg.proto index 2e1adff..a95b29b 100644 --- a/auth/v1/msg.proto +++ b/auth/v1/msg.proto @@ -122,6 +122,11 @@ message User { repeated int64 roles = 5; } +message UserAddress{ + string postal_code = 2; + string user_address = 3; +} + message Company { int64 id = 1; string name = 2; @@ -157,8 +162,7 @@ message Identity { optional string employee_info = 23; string pub_key = 24; optional float balance = 25; - optional string postal_code = 26; - optional string user_address = 27; + optional UserAddress user_address = 26; } message IdentityBasic { @@ -181,8 +185,7 @@ message UserUpdateIdentityReq { string national_id = 2; string birthdate = 3; string email = 4; - optional string postal_code = 5; - optional string user_address = 6; + optional UserAddress user_address = 5; } message UserUpdateBankInfoReq {