From 2b259f63e659271239c6ebcb5ce7e84dcede4bef Mon Sep 17 00:00:00 2001 From: PARK BYUNG JUN Date: Thu, 1 Sep 2022 17:29:50 +0000 Subject: [PATCH] total_count is added --- Cargo.toml | 4 ++-- src/api/game/service.rs | 5 ++++- src/api/vendor/service.rs | 1 + src/bank/service.rs | 5 ++++- src/member_bank_deposit/service.rs | 1 + src/member_bank_withdraw/service.rs | 1 + 6 files changed, 13 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 94ce5e4..e537e7f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ nats = { version = "0" } prost = { version = "0" } tokio = { version = "1", features = ["macros", "rt-multi-thread"] } -beteran-protobuf-rust = { git = "https://gitlab.loafle.net/bet/beteran-protobuf-rust.git", tag = "v0.1.92-snapshot" } -beteran-common-rust = { git = "https://gitlab.loafle.net/bet/beteran-common-rust.git", tag = "v0.1.78-snapshot" } +beteran-protobuf-rust = { git = "https://gitlab.loafle.net/bet/beteran-protobuf-rust.git", tag = "v0.1.93-snapshot" } +beteran-common-rust = { git = "https://gitlab.loafle.net/bet/beteran-common-rust.git", tag = "v0.1.79-snapshot" } [build-dependencies] diff --git a/src/api/game/service.rs b/src/api/game/service.rs index 1cdbca3..9ac7858 100644 --- a/src/api/game/service.rs +++ b/src/api/game/service.rs @@ -189,7 +189,10 @@ impl Service { .respond( bpr::c2se::api::game::ListGamesResponse { error: None, - result: Some(bpr::c2se::api::game::list_games_response::Result { games: r.games }), + result: Some(bpr::c2se::api::game::list_games_response::Result { + total_count: r.total_count, + games: r.games, + }), } .encode_to_vec(), ) diff --git a/src/api/vendor/service.rs b/src/api/vendor/service.rs index 2dd80d5..cea41b9 100644 --- a/src/api/vendor/service.rs +++ b/src/api/vendor/service.rs @@ -143,6 +143,7 @@ impl Service { bpr::c2se::api::vendor::ListVendorsResponse { error: None, result: Some(bpr::c2se::api::vendor::list_vendors_response::Result { + total_count: r.total_count, vendors: r.vendors, }), } diff --git a/src/bank/service.rs b/src/bank/service.rs index b015fc7..d7b9d99 100644 --- a/src/bank/service.rs +++ b/src/bank/service.rs @@ -138,7 +138,10 @@ impl Service { .respond( bpr::c2se::bank::ListBanksResponse { error: None, - result: Some(bpr::c2se::bank::list_banks_response::Result { banks: r.banks }), + result: Some(bpr::c2se::bank::list_banks_response::Result { + total_count: r.total_count, + banks: r.banks, + }), } .encode_to_vec(), ) diff --git a/src/member_bank_deposit/service.rs b/src/member_bank_deposit/service.rs index 0fc48d4..efb7af1 100644 --- a/src/member_bank_deposit/service.rs +++ b/src/member_bank_deposit/service.rs @@ -331,6 +331,7 @@ impl Service { bpr::c2se::member_bank_deposit::ListMemberBankDepositsResponse { error: None, result: Some(bpr::c2se::member_bank_deposit::list_member_bank_deposits_response::Result { + total_count: r.total_count, member_bank_deposits: r.member_bank_deposits, }), } diff --git a/src/member_bank_withdraw/service.rs b/src/member_bank_withdraw/service.rs index 908531a..503b54e 100644 --- a/src/member_bank_withdraw/service.rs +++ b/src/member_bank_withdraw/service.rs @@ -335,6 +335,7 @@ impl Service { bpr::c2se::member_bank_withdraw::ListMemberBankWithdrawsResponse { error: None, result: Some(bpr::c2se::member_bank_withdraw::list_member_bank_withdraws_response::Result { + total_count: r.total_count, member_bank_withdraws: r.member_bank_withdraws, }), }