From 0e5ea53a1e5d0f380ba30ed4b85004a3a9af52d6 Mon Sep 17 00:00:00 2001 From: PARK BYUNG JUN Date: Mon, 15 Aug 2022 04:44:40 +0000 Subject: [PATCH] member, member_bank_account are modified --- Cargo.toml | 4 ++-- src/member/service.rs | 15 +++++++++++++++ src/member_bank_account/service.rs | 2 ++ 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f73eb78..e152342 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ prost = { version = "0" } nats = { version = "0" } base64 = { version = "0" } -beteran-protobuf-rust = { git = "https://gitlab.loafle.net/bet/beteran-protobuf-rust.git", tag = "v0.1.58-snapshot" } -beteran-common-rust = { git = "https://gitlab.loafle.net/bet/beteran-common-rust.git", tag = "v0.1.42-snapshot" } +beteran-protobuf-rust = { git = "https://gitlab.loafle.net/bet/beteran-protobuf-rust.git", tag = "v0.1.60-snapshot" } +beteran-common-rust = { git = "https://gitlab.loafle.net/bet/beteran-common-rust.git", tag = "v0.1.44-snapshot" } [build-dependencies] diff --git a/src/member/service.rs b/src/member/service.rs index 45b5e7b..f1fd1f7 100644 --- a/src/member/service.rs +++ b/src/member/service.rs @@ -96,6 +96,7 @@ impl Service { bank_id: a.bank_id, name: a.name, account_number: a.account_number, + exchange_password: a.exchange_password, }, ), None => None, @@ -522,6 +523,19 @@ impl Service { }) })?; + let bank_account = match req.bank_account { + Some(a) => Some( + bpr::ss::member::update_member_request::request::BankAccount { + id: a.id, + bank_id: a.bank_id, + name: a.name, + account_number: a.account_number, + exchange_password: a.exchange_password, + }, + ), + None => None, + }; + let ss_update_member_req = bpr::ss::member::UpdateMemberRequest { client: Some(client), request: Some(bpr::ss::member::update_member_request::Request { @@ -530,6 +544,7 @@ impl Service { member_level_id: req.member_level_id, password: req.password, mobile_phone_number: req.mobile_phone_number, + bank_account, }), }; diff --git a/src/member_bank_account/service.rs b/src/member_bank_account/service.rs index 5f590c5..3d8982a 100644 --- a/src/member_bank_account/service.rs +++ b/src/member_bank_account/service.rs @@ -100,6 +100,7 @@ impl Service { bank_id: req.bank_id, name: req.name, account_number: req.account_number, + exchange_password: req.exchange_password, memo: req.memo, }, ), @@ -420,6 +421,7 @@ impl Service { bank_id: req.bank_id, name: req.name, account_number: req.account_number, + exchange_password: req.exchange_password, memo: req.memo, })