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, }), };