From d74e4851c957ca111439c197bfa2d79aa8a1db7f Mon Sep 17 00:00:00 2001 From: PARK BYUNG JUN Date: Tue, 30 Aug 2022 08:03:27 +0000 Subject: [PATCH] data type of money is changed --- src/c2se/api/game.rs | 5 ++--- src/c2se/member_bank_deposit.rs | 12 ++++++------ src/c2se/member_bank_withdraw.rs | 10 +++++----- src/models/api/vendor.rs | 8 ++++---- src/models/member_bank_deposit.rs | 8 ++++---- src/models/member_bank_withdraw.rs | 8 ++++---- src/ss/api/game.rs | 5 ++--- src/ss/member_bank_deposit.rs | 13 ++++++------- src/ss/member_bank_withdraw.rs | 13 ++++++------- 9 files changed, 39 insertions(+), 43 deletions(-) diff --git a/src/c2se/api/game.rs b/src/c2se/api/game.rs index 138fff9..20318ae 100644 --- a/src/c2se/api/game.rs +++ b/src/c2se/api/game.rs @@ -38,7 +38,6 @@ pub mod list_games_response { pub games: ::prost::alloc::vec::Vec, } } - #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetGameUrlRequest { #[prost(string, tag = "1")] @@ -59,8 +58,8 @@ pub mod get_game_url_response { pub struct Result { #[prost(uint64, tag = "1")] pub user_id: u64, - #[prost(uint64, tag = "2")] - pub balance: u64, + #[prost(double, tag = "2")] + pub balance: f64, #[prost(string, tag = "3")] pub url: ::prost::alloc::string::String, } diff --git a/src/c2se/member_bank_deposit.rs b/src/c2se/member_bank_deposit.rs index 67bbac0..c85e934 100644 --- a/src/c2se/member_bank_deposit.rs +++ b/src/c2se/member_bank_deposit.rs @@ -2,8 +2,8 @@ pub struct CreateMemberBankDepositRequest { #[prost(string, tag = "1")] pub name: ::prost::alloc::string::String, - #[prost(uint32, tag = "2")] - pub amount: u32, + #[prost(double, tag = "2")] + pub amount: f64, #[prost(string, optional, tag = "3")] pub memo: ::core::option::Option<::prost::alloc::string::String>, } @@ -40,8 +40,8 @@ pub mod list_member_bank_deposits_request { pub member_id: ::core::option::Option<::prost::alloc::string::String>, #[prost(string, optional, tag = "2")] pub name_like: ::core::option::Option<::prost::alloc::string::String>, - #[prost(uint32, optional, tag = "3")] - pub amount: ::core::option::Option, + #[prost(double, optional, tag = "3")] + pub amount: ::core::option::Option, #[prost(string, optional, tag = "4")] pub memo_like: ::core::option::Option<::prost::alloc::string::String>, #[prost( @@ -95,8 +95,8 @@ pub struct UpdateMemberBankDepositRequest { pub id: ::prost::alloc::string::String, #[prost(string, tag = "3")] pub name: ::prost::alloc::string::String, - #[prost(uint32, tag = "5")] - pub amount: u32, + #[prost(double, tag = "5")] + pub amount: f64, #[prost(string, optional, tag = "7")] pub memo: ::core::option::Option<::prost::alloc::string::String>, } diff --git a/src/c2se/member_bank_withdraw.rs b/src/c2se/member_bank_withdraw.rs index 59a5207..fee0b72 100644 --- a/src/c2se/member_bank_withdraw.rs +++ b/src/c2se/member_bank_withdraw.rs @@ -6,8 +6,8 @@ pub struct CreateMemberBankWithdrawRequest { pub name: ::prost::alloc::string::String, #[prost(string, tag = "3")] pub account_number: ::prost::alloc::string::String, - #[prost(uint32, tag = "4")] - pub amount: u32, + #[prost(double, tag = "4")] + pub amount: f64, #[prost(string, tag = "5")] pub password: ::prost::alloc::string::String, #[prost(string, optional, tag = "6")] @@ -50,8 +50,8 @@ pub mod list_member_bank_withdraws_request { pub name_like: ::core::option::Option<::prost::alloc::string::String>, #[prost(string, optional, tag = "4")] pub account_number_like: ::core::option::Option<::prost::alloc::string::String>, - #[prost(uint32, optional, tag = "5")] - pub amount: ::core::option::Option, + #[prost(double, optional, tag = "5")] + pub amount: ::core::option::Option, #[prost(string, optional, tag = "6")] pub memo_like: ::core::option::Option<::prost::alloc::string::String>, #[prost( @@ -110,7 +110,7 @@ pub struct UpdateMemberBankWithdrawRequest { #[prost(string, tag = "4")] pub account_number: ::prost::alloc::string::String, #[prost(uint32, tag = "5")] - pub amount: u32, + pub double: u32, #[prost(string, tag = "6")] pub password: ::prost::alloc::string::String, #[prost(string, optional, tag = "7")] diff --git a/src/models/api/vendor.rs b/src/models/api/vendor.rs index cf72064..77681d7 100644 --- a/src/models/api/vendor.rs +++ b/src/models/api/vendor.rs @@ -12,10 +12,10 @@ pub struct Vendor { pub name: ::prost::alloc::string::String, #[prost(string, tag = "6")] pub category: ::prost::alloc::string::String, - #[prost(uint64, tag = "7")] - pub max_bet_casino: u64, - #[prost(uint64, tag = "8")] - pub max_bet_slot: u64, + #[prost(double, tag = "7")] + pub max_bet_casino: f64, + #[prost(double, tag = "8")] + pub max_bet_slot: f64, #[prost(string, tag = "9")] pub is_enable: ::prost::alloc::string::String, #[prost(uint64, tag = "10")] diff --git a/src/models/member_bank_deposit.rs b/src/models/member_bank_deposit.rs index d52ad19..45fad82 100644 --- a/src/models/member_bank_deposit.rs +++ b/src/models/member_bank_deposit.rs @@ -6,8 +6,8 @@ pub struct MemberBankDeposit { pub member_id: ::prost::alloc::string::String, #[prost(string, tag = "3")] pub name: ::prost::alloc::string::String, - #[prost(uint32, tag = "4")] - pub amount: u32, + #[prost(double, tag = "4")] + pub amount: f64, #[prost(string, optional, tag = "5")] pub memo: ::core::option::Option<::prost::alloc::string::String>, #[prost(enumeration = "MemberBankDepositState", tag = "6")] @@ -27,8 +27,8 @@ pub struct MemberBankDepositModel { pub member: ::core::option::Option, #[prost(string, tag = "3")] pub name: ::prost::alloc::string::String, - #[prost(uint32, tag = "4")] - pub amount: u32, + #[prost(double, tag = "4")] + pub amount: f64, #[prost(string, optional, tag = "5")] pub memo: ::core::option::Option<::prost::alloc::string::String>, #[prost(enumeration = "MemberBankDepositState", tag = "6")] diff --git a/src/models/member_bank_withdraw.rs b/src/models/member_bank_withdraw.rs index 396ce4d..33ebbae 100644 --- a/src/models/member_bank_withdraw.rs +++ b/src/models/member_bank_withdraw.rs @@ -10,8 +10,8 @@ pub struct MemberBankWithdraw { pub name: ::prost::alloc::string::String, #[prost(string, tag = "5")] pub account_number: ::prost::alloc::string::String, - #[prost(uint32, tag = "6")] - pub amount: u32, + #[prost(double, tag = "6")] + pub amount: f64, #[prost(string, tag = "7")] pub password: ::prost::alloc::string::String, #[prost(string, optional, tag = "8")] @@ -37,8 +37,8 @@ pub struct MemberBankWithdrawModel { pub name: ::prost::alloc::string::String, #[prost(string, tag = "5")] pub account_number: ::prost::alloc::string::String, - #[prost(uint32, tag = "6")] - pub amount: u32, + #[prost(double, tag = "6")] + pub amount: f64, #[prost(string, tag = "7")] pub password: ::prost::alloc::string::String, #[prost(string, optional, tag = "8")] diff --git a/src/ss/api/game.rs b/src/ss/api/game.rs index 4186719..157d51d 100644 --- a/src/ss/api/game.rs +++ b/src/ss/api/game.rs @@ -54,7 +54,6 @@ pub mod list_games_response { pub games: ::prost::alloc::vec::Vec, } } - /// subject = bet.beteran.ss.api.game.GetGameUrl #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetGameUrlRequest { @@ -88,8 +87,8 @@ pub mod get_game_url_response { pub struct Result { #[prost(uint64, tag = "1")] pub user_id: u64, - #[prost(uint64, tag = "2")] - pub balance: u64, + #[prost(double, tag = "2")] + pub balance: f64, #[prost(string, tag = "3")] pub url: ::prost::alloc::string::String, } diff --git a/src/ss/member_bank_deposit.rs b/src/ss/member_bank_deposit.rs index b1e9346..bc615f6 100644 --- a/src/ss/member_bank_deposit.rs +++ b/src/ss/member_bank_deposit.rs @@ -33,8 +33,8 @@ pub mod create_member_bank_deposit_request { pub member_id: ::prost::alloc::string::String, #[prost(string, tag = "2")] pub name: ::prost::alloc::string::String, - #[prost(uint32, tag = "3")] - pub amount: u32, + #[prost(double, tag = "3")] + pub amount: f64, #[prost(string, optional, tag = "4")] pub memo: ::core::option::Option<::prost::alloc::string::String>, } @@ -82,8 +82,8 @@ pub mod list_member_bank_deposits_request { pub member_id: ::core::option::Option<::prost::alloc::string::String>, #[prost(string, optional, tag = "2")] pub name_like: ::core::option::Option<::prost::alloc::string::String>, - #[prost(uint32, optional, tag = "3")] - pub amount: ::core::option::Option, + #[prost(double, optional, tag = "3")] + pub amount: ::core::option::Option, #[prost(string, optional, tag = "4")] pub memo_like: ::core::option::Option<::prost::alloc::string::String>, #[prost( @@ -159,8 +159,8 @@ pub mod update_member_bank_deposit_request { pub id: ::prost::alloc::string::String, #[prost(string, tag = "3")] pub name: ::prost::alloc::string::String, - #[prost(uint32, tag = "5")] - pub amount: u32, + #[prost(double, tag = "5")] + pub amount: f64, #[prost(string, optional, tag = "7")] pub memo: ::core::option::Option<::prost::alloc::string::String>, } @@ -246,7 +246,6 @@ pub mod delete_member_bank_deposit_response { #[derive(Clone, PartialEq, ::prost::Message)] pub struct Result {} } - /// subject = bet.beteran.ss_event.member_bank_deposit.AfterUpdateMemberBankDepositForState #[derive(Clone, PartialEq, ::prost::Message)] pub struct AfterUpdateMemberBankDepositForState { diff --git a/src/ss/member_bank_withdraw.rs b/src/ss/member_bank_withdraw.rs index 4d20851..27edb31 100644 --- a/src/ss/member_bank_withdraw.rs +++ b/src/ss/member_bank_withdraw.rs @@ -37,8 +37,8 @@ pub mod create_member_bank_withdraw_request { pub name: ::prost::alloc::string::String, #[prost(string, tag = "4")] pub account_number: ::prost::alloc::string::String, - #[prost(uint32, tag = "5")] - pub amount: u32, + #[prost(double, tag = "5")] + pub amount: f64, #[prost(string, tag = "6")] pub password: ::prost::alloc::string::String, #[prost(string, optional, tag = "7")] @@ -92,8 +92,8 @@ pub mod list_member_bank_withdraws_request { pub name_like: ::core::option::Option<::prost::alloc::string::String>, #[prost(string, optional, tag = "4")] pub account_number_like: ::core::option::Option<::prost::alloc::string::String>, - #[prost(uint32, optional, tag = "5")] - pub amount: ::core::option::Option, + #[prost(double, optional, tag = "5")] + pub amount: ::core::option::Option, #[prost(string, optional, tag = "6")] pub memo_like: ::core::option::Option<::prost::alloc::string::String>, #[prost( @@ -173,8 +173,8 @@ pub mod update_member_bank_withdraw_request { pub name: ::prost::alloc::string::String, #[prost(string, tag = "4")] pub account_number: ::prost::alloc::string::String, - #[prost(uint32, tag = "5")] - pub amount: u32, + #[prost(double, tag = "5")] + pub amount: f64, #[prost(string, tag = "6")] pub password: ::prost::alloc::string::String, #[prost(string, optional, tag = "7")] @@ -262,7 +262,6 @@ pub mod delete_member_bank_withdraw_response { #[derive(Clone, PartialEq, ::prost::Message)] pub struct Result {} } - /// subject = bet.beteran.ss_event.member_bank_withdraw.AfterUpdateMemberBankWithdrawForState #[derive(Clone, PartialEq, ::prost::Message)] pub struct AfterUpdateMemberBankWithdrawForState {