member, member_bank_account are modified

This commit is contained in:
병준 박 2022-08-15 04:44:40 +00:00
parent 5fa4a682db
commit 0e5ea53a1e
3 changed files with 19 additions and 2 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.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]

View File

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

View File

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