From 5fa4a682dbaeb2b8811f107765f53a8da1272b3c Mon Sep 17 00:00:00 2001 From: PARK BYUNG JUN Date: Sun, 14 Aug 2022 15:25:25 +0000 Subject: [PATCH] create_member is modified --- Cargo.toml | 4 ++-- src/member/service.rs | 13 ++++++++++++- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 6582365..f73eb78 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.57-snapshot" } -beteran-common-rust = { git = "https://gitlab.loafle.net/bet/beteran-common-rust.git", tag = "v0.1.41-snapshot" } +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" } [build-dependencies] diff --git a/src/member/service.rs b/src/member/service.rs index 8154076..45b5e7b 100644 --- a/src/member/service.rs +++ b/src/member/service.rs @@ -90,6 +90,17 @@ impl Service { }) })?; + let bank_account = match req.bank_account { + Some(a) => Some( + bpr::ss::member::create_member_request::request::BankAccount { + bank_id: a.bank_id, + name: a.name, + account_number: a.account_number, + }, + ), + None => None, + }; + let ss_create_member_req = bpr::ss::member::CreateMemberRequest { client: Some(client), request: Some(bpr::ss::member::create_member_request::Request { @@ -101,7 +112,7 @@ impl Service { username: req.username, password: req.password, nickname: req.nickname, - state: req.state, + bank_account, }), };