total_count is added

This commit is contained in:
병준 박 2022-09-01 17:29:50 +00:00
parent 44fc11abe6
commit 2b259f63e6
6 changed files with 13 additions and 4 deletions

View File

@ -19,7 +19,7 @@ nats = { version = "0" }
prost = { version = "0" } prost = { version = "0" }
tokio = { version = "1", features = ["macros", "rt-multi-thread"] } 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-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.78-snapshot" } beteran-common-rust = { git = "https://gitlab.loafle.net/bet/beteran-common-rust.git", tag = "v0.1.79-snapshot" }
[build-dependencies] [build-dependencies]

View File

@ -189,7 +189,10 @@ impl Service {
.respond( .respond(
bpr::c2se::api::game::ListGamesResponse { bpr::c2se::api::game::ListGamesResponse {
error: None, 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(), .encode_to_vec(),
) )

View File

@ -143,6 +143,7 @@ impl Service {
bpr::c2se::api::vendor::ListVendorsResponse { bpr::c2se::api::vendor::ListVendorsResponse {
error: None, error: None,
result: Some(bpr::c2se::api::vendor::list_vendors_response::Result { result: Some(bpr::c2se::api::vendor::list_vendors_response::Result {
total_count: r.total_count,
vendors: r.vendors, vendors: r.vendors,
}), }),
} }

View File

@ -138,7 +138,10 @@ impl Service {
.respond( .respond(
bpr::c2se::bank::ListBanksResponse { bpr::c2se::bank::ListBanksResponse {
error: None, 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(), .encode_to_vec(),
) )

View File

@ -331,6 +331,7 @@ impl Service {
bpr::c2se::member_bank_deposit::ListMemberBankDepositsResponse { bpr::c2se::member_bank_deposit::ListMemberBankDepositsResponse {
error: None, error: None,
result: Some(bpr::c2se::member_bank_deposit::list_member_bank_deposits_response::Result { 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, member_bank_deposits: r.member_bank_deposits,
}), }),
} }

View File

@ -335,6 +335,7 @@ impl Service {
bpr::c2se::member_bank_withdraw::ListMemberBankWithdrawsResponse { bpr::c2se::member_bank_withdraw::ListMemberBankWithdrawsResponse {
error: None, error: None,
result: Some(bpr::c2se::member_bank_withdraw::list_member_bank_withdraws_response::Result { 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, member_bank_withdraws: r.member_bank_withdraws,
}), }),
} }