create_member is modified

This commit is contained in:
병준 박 2022-08-14 15:25:25 +00:00
parent aba510507b
commit 5fa4a682db
2 changed files with 14 additions and 3 deletions

View File

@ -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]

View File

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