From e593fcb8bbc6ab824ff35d77d78e3c4b2ecdfdfa Mon Sep 17 00:00:00 2001 From: PARK BYUNG JUN Date: Mon, 22 Aug 2022 06:42:21 +0000 Subject: [PATCH] member_game_setting, member_settlement_setting are added --- src/c2se/backend/member_game_setting.rs | 12 + src/c2se/backend/member_settlement_setting.rs | 12 + src/c2se/backend/mod.rs | 2 + src/c2se/member_game_setting.rs | 125 ++++++++++ src/c2se/member_settlement_setting.rs | 159 ++++++++++++ src/c2se/mod.rs | 2 + src/models/member.rs | 15 +- src/models/member_game_setting.rs | 23 ++ src/models/member_settlement_setting.rs | 66 +++++ src/models/mod.rs | 2 + src/ss/member_game_setting.rs | 193 +++++++++++++++ src/ss/member_settlement_setting.rs | 227 ++++++++++++++++++ src/ss/mod.rs | 2 + 13 files changed, 835 insertions(+), 5 deletions(-) create mode 100644 src/c2se/backend/member_game_setting.rs create mode 100644 src/c2se/backend/member_settlement_setting.rs create mode 100644 src/c2se/member_game_setting.rs create mode 100644 src/c2se/member_settlement_setting.rs create mode 100644 src/models/member_game_setting.rs create mode 100644 src/models/member_settlement_setting.rs create mode 100644 src/ss/member_game_setting.rs create mode 100644 src/ss/member_settlement_setting.rs diff --git a/src/c2se/backend/member_game_setting.rs b/src/c2se/backend/member_game_setting.rs new file mode 100644 index 0000000..ce27262 --- /dev/null +++ b/src/c2se/backend/member_game_setting.rs @@ -0,0 +1,12 @@ +const SUBJECT: &str = "bet.beteran.c2se.backend.member_game_setting"; + +pub const SUBJECT_CREATE_MEMBER_GAME_SETTING: &str = + const_format::concatcp!(SUBJECT, ".CreateMemberGameSetting"); +pub const SUBJECT_LIST_MEMBER_GAME_SETTINGS: &str = + const_format::concatcp!(SUBJECT, ".ListMemberGameSettings"); +pub const SUBJECT_GET_MEMBER_GAME_SETTING: &str = + const_format::concatcp!(SUBJECT, ".GetMemberGameSetting"); +pub const SUBJECT_UPDATE_MEMBER_GAME_SETTING: &str = + const_format::concatcp!(SUBJECT, ".UpdateMemberGameSetting"); +pub const SUBJECT_DELETE_MEMBER_GAME_SETTING: &str = + const_format::concatcp!(SUBJECT, ".DeleteMemberGameSetting"); diff --git a/src/c2se/backend/member_settlement_setting.rs b/src/c2se/backend/member_settlement_setting.rs new file mode 100644 index 0000000..d941318 --- /dev/null +++ b/src/c2se/backend/member_settlement_setting.rs @@ -0,0 +1,12 @@ +const SUBJECT: &str = "bet.beteran.c2se.backend.member_settlement_setting"; + +pub const SUBJECT_CREATE_MEMBER_SETTLEMENT_SETTING: &str = + const_format::concatcp!(SUBJECT, ".CreateMemberSettlementSetting"); +pub const SUBJECT_LIST_MEMBER_SETTLEMENT_SETTINGS: &str = + const_format::concatcp!(SUBJECT, ".ListMemberSettlementSettings"); +pub const SUBJECT_GET_MEMBER_SETTLEMENT_SETTING: &str = + const_format::concatcp!(SUBJECT, ".GetMemberSettlementSetting"); +pub const SUBJECT_UPDATE_MEMBER_SETTLEMENT_SETTING: &str = + const_format::concatcp!(SUBJECT, ".UpdateMemberSettlementSetting"); +pub const SUBJECT_DELETE_MEMBER_SETTLEMENT_SETTING: &str = + const_format::concatcp!(SUBJECT, ".DeleteMemberSettlementSetting"); diff --git a/src/c2se/backend/mod.rs b/src/c2se/backend/mod.rs index e0aa012..b6fe34b 100644 --- a/src/c2se/backend/mod.rs +++ b/src/c2se/backend/mod.rs @@ -6,6 +6,8 @@ pub mod member_bank_account; pub mod member_bank_deposit; pub mod member_bank_withdraw; pub mod member_class; +pub mod member_game_setting; pub mod member_level; pub mod member_referrer; +pub mod member_settlement_setting; pub mod site; diff --git a/src/c2se/member_game_setting.rs b/src/c2se/member_game_setting.rs new file mode 100644 index 0000000..71c9dc4 --- /dev/null +++ b/src/c2se/member_game_setting.rs @@ -0,0 +1,125 @@ +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateMemberGameSettingRequest { + #[prost(string, tag = "1")] + pub member_id: ::prost::alloc::string::String, +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateMemberGameSettingResponse { + #[prost(message, optional, tag = "1")] + pub error: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// Nested message and enum types in `CreateMemberGameSettingResponse`. +pub mod create_member_game_setting_response { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, optional, tag = "1")] + pub member_game_setting: + ::core::option::Option, + } +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListMemberGameSettingsRequest { + #[prost(message, optional, tag = "1")] + pub pagination: ::core::option::Option, + #[prost(message, repeated, tag = "2")] + pub sorts: ::prost::alloc::vec::Vec, + #[prost(message, optional, tag = "3")] + pub search: ::core::option::Option, +} +/// Nested message and enum types in `ListMemberGameSettingsRequest`. +pub mod list_member_game_settings_request { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Search { + #[prost(string, optional, tag = "1")] + pub member_id: ::core::option::Option<::prost::alloc::string::String>, + } +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListMemberGameSettingsResponse { + #[prost(message, optional, tag = "1")] + pub error: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// Nested message and enum types in `ListMemberGameSettingsResponse`. +pub mod list_member_game_settings_response { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, repeated, tag = "1")] + pub member_game_settings: + ::prost::alloc::vec::Vec, + } +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetMemberGameSettingRequest { + #[prost(string, tag = "1")] + pub id: ::prost::alloc::string::String, +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetMemberGameSettingResponse { + #[prost(message, optional, tag = "1")] + pub error: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// Nested message and enum types in `GetMemberGameSettingResponse`. +pub mod get_member_game_setting_response { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, optional, tag = "1")] + pub member_game_setting: + ::core::option::Option, + } +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UpdateMemberGameSettingRequest { + #[prost(string, tag = "1")] + pub id: ::prost::alloc::string::String, + #[prost(bool, tag = "2")] + pub can_bet_casino: bool, + #[prost(bool, tag = "3")] + pub can_bet_slot: bool, + #[prost(bool, tag = "4")] + pub can_bet_powerball: bool, + #[prost(bool, tag = "5")] + pub can_bet_powerladder: bool, + #[prost(bool, tag = "6")] + pub can_bet_eos: bool, + #[prost(bool, tag = "7")] + pub can_bet_bogglepowerball: bool, +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UpdateMemberGameSettingResponse { + #[prost(message, optional, tag = "1")] + pub error: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// Nested message and enum types in `UpdateMemberGameSettingResponse`. +pub mod update_member_game_setting_response { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, optional, tag = "1")] + pub member_game_setting: + ::core::option::Option, + } +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DeleteMemberGameSettingRequest { + #[prost(string, tag = "1")] + pub id: ::prost::alloc::string::String, +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DeleteMemberGameSettingResponse { + #[prost(message, optional, tag = "1")] + pub error: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// Nested message and enum types in `DeleteMemberGameSettingResponse`. +pub mod delete_member_game_setting_response { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result {} +} diff --git a/src/c2se/member_settlement_setting.rs b/src/c2se/member_settlement_setting.rs new file mode 100644 index 0000000..76bb6fb --- /dev/null +++ b/src/c2se/member_settlement_setting.rs @@ -0,0 +1,159 @@ +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateMemberSettlementSettingRequest { + #[prost(string, tag = "1")] + pub member_id: ::prost::alloc::string::String, +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateMemberSettlementSettingResponse { + #[prost(message, optional, tag = "1")] + pub error: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// Nested message and enum types in `CreateMemberSettlementSettingResponse`. +pub mod create_member_settlement_setting_response { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, optional, tag = "1")] + pub member_settlement_setting: + ::core::option::Option, + } +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListMemberSettlementSettingsRequest { + #[prost(message, optional, tag = "1")] + pub pagination: ::core::option::Option, + #[prost(message, repeated, tag = "2")] + pub sorts: ::prost::alloc::vec::Vec, + #[prost(message, optional, tag = "3")] + pub search: ::core::option::Option, +} +/// Nested message and enum types in `ListMemberSettlementSettingsRequest`. +pub mod list_member_settlement_settings_request { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Search { + #[prost(string, optional, tag = "1")] + pub member_id: ::core::option::Option<::prost::alloc::string::String>, + } +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListMemberSettlementSettingsResponse { + #[prost(message, optional, tag = "1")] + pub error: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// Nested message and enum types in `ListMemberSettlementSettingsResponse`. +pub mod list_member_settlement_settings_response { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, repeated, tag = "1")] + pub member_settlement_settings: + ::prost::alloc::vec::Vec, + } +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetMemberSettlementSettingRequest { + #[prost(string, tag = "1")] + pub id: ::prost::alloc::string::String, +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetMemberSettlementSettingResponse { + #[prost(message, optional, tag = "1")] + pub error: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// Nested message and enum types in `GetMemberSettlementSettingResponse`. +pub mod get_member_settlement_setting_response { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, optional, tag = "1")] + pub member_settlement_setting: + ::core::option::Option, + } +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UpdateMemberSettlementSettingRequest { + #[prost(string, tag = "1")] + pub id: ::prost::alloc::string::String, + #[prost(bool, tag = "2")] + pub can_exchange: bool, + #[prost(bool, tag = "3")] + pub can_first_charge_comp: bool, + #[prost(bool, tag = "4")] + pub can_per_charge_comp: bool, + #[prost( + enumeration = "crate::models::member_settlement_setting::SettlementType", + tag = "5" + )] + pub settlement_type: i32, + #[prost( + enumeration = "crate::models::member_settlement_setting::ManualPaymentType", + tag = "6" + )] + pub manual_payment_type_for_partner: i32, + #[prost(double, tag = "7")] + pub rate_casino: f64, + #[prost(double, tag = "8")] + pub rate_casino_loosing: f64, + #[prost(double, tag = "9")] + pub rate_casino_bacara: f64, + #[prost(double, tag = "10")] + pub rate_casino_roulette: f64, + #[prost(double, tag = "11")] + pub rate_casino_dragon_tiger: f64, + #[prost(double, tag = "12")] + pub rate_slot: f64, + #[prost(double, tag = "13")] + pub rate_slot_loosing: f64, + #[prost(double, tag = "14")] + pub rate_powerball_single: f64, + #[prost(double, tag = "15")] + pub rate_powerball_combo: f64, + #[prost(double, tag = "16")] + pub rate_powerladder_single: f64, + #[prost(double, tag = "17")] + pub rate_powerladder_combo: f64, + #[prost(double, tag = "18")] + pub rate_eos_single: f64, + #[prost(double, tag = "19")] + pub rate_eos_combo: f64, + #[prost(double, tag = "20")] + pub rate_bogglepowerball_single: f64, + #[prost(double, tag = "21")] + pub rate_bogglepowerball_combo: f64, +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UpdateMemberSettlementSettingResponse { + #[prost(message, optional, tag = "1")] + pub error: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// Nested message and enum types in `UpdateMemberSettlementSettingResponse`. +pub mod update_member_settlement_setting_response { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, optional, tag = "1")] + pub member_settlement_setting: + ::core::option::Option, + } +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DeleteMemberSettlementSettingRequest { + #[prost(string, tag = "1")] + pub id: ::prost::alloc::string::String, +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DeleteMemberSettlementSettingResponse { + #[prost(message, optional, tag = "1")] + pub error: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// Nested message and enum types in `DeleteMemberSettlementSettingResponse`. +pub mod delete_member_settlement_setting_response { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result {} +} diff --git a/src/c2se/mod.rs b/src/c2se/mod.rs index 0391a2c..bae0236 100644 --- a/src/c2se/mod.rs +++ b/src/c2se/mod.rs @@ -9,6 +9,8 @@ pub mod member_bank_account; pub mod member_bank_deposit; pub mod member_bank_withdraw; pub mod member_class; +pub mod member_game_setting; pub mod member_level; pub mod member_referrer; +pub mod member_settlement_setting; pub mod site; diff --git a/src/models/member.rs b/src/models/member.rs index a5ecdcf..1a39832 100644 --- a/src/models/member.rs +++ b/src/models/member.rs @@ -59,15 +59,20 @@ pub struct MemberModel { pub state: i32, #[prost(uint64, optional, tag = "12")] pub state_changed_at: ::core::option::Option, - #[prost(string, optional, tag = "13")] + #[prost(message, optional, tag = "13")] + pub member_game_setting: ::core::option::Option, + #[prost(message, optional, tag = "14")] + pub member_settlement_setting: + ::core::option::Option, + #[prost(string, optional, tag = "15")] pub last_signined_ip: ::core::option::Option<::prost::alloc::string::String>, - #[prost(uint64, optional, tag = "14")] + #[prost(uint64, optional, tag = "16")] pub last_signined_at: ::core::option::Option, - #[prost(uint64, tag = "15")] + #[prost(uint64, tag = "17")] pub created_at: u64, - #[prost(uint64, tag = "16")] + #[prost(uint64, tag = "18")] pub updated_at: u64, - #[prost(uint64, optional, tag = "17")] + #[prost(uint64, optional, tag = "19")] pub deleted_at: ::core::option::Option, } #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] diff --git a/src/models/member_game_setting.rs b/src/models/member_game_setting.rs new file mode 100644 index 0000000..8e541e4 --- /dev/null +++ b/src/models/member_game_setting.rs @@ -0,0 +1,23 @@ +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct MemberGameSetting { + #[prost(string, tag = "1")] + pub id: ::prost::alloc::string::String, + #[prost(string, tag = "2")] + pub member_id: ::prost::alloc::string::String, + #[prost(bool, tag = "3")] + pub can_bet_casino: bool, + #[prost(bool, tag = "4")] + pub can_bet_slot: bool, + #[prost(bool, tag = "5")] + pub can_bet_powerball: bool, + #[prost(bool, tag = "6")] + pub can_bet_powerladder: bool, + #[prost(bool, tag = "7")] + pub can_bet_eos: bool, + #[prost(bool, tag = "8")] + pub can_bet_bogglepowerball: bool, + #[prost(uint64, tag = "9")] + pub created_at: u64, + #[prost(uint64, tag = "10")] + pub updated_at: u64, +} diff --git a/src/models/member_settlement_setting.rs b/src/models/member_settlement_setting.rs new file mode 100644 index 0000000..8b07b91 --- /dev/null +++ b/src/models/member_settlement_setting.rs @@ -0,0 +1,66 @@ +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct MemberSettlementSetting { + #[prost(string, tag = "1")] + pub id: ::prost::alloc::string::String, + #[prost(string, tag = "2")] + pub member_id: ::prost::alloc::string::String, + #[prost(bool, tag = "3")] + pub can_exchange: bool, + #[prost(bool, tag = "4")] + pub can_first_charge_comp: bool, + #[prost(bool, tag = "5")] + pub can_per_charge_comp: bool, + #[prost(enumeration = "SettlementType", tag = "6")] + pub settlement_type: i32, + #[prost(enumeration = "ManualPaymentType", tag = "7")] + pub manual_payment_type_for_partner: i32, + #[prost(double, tag = "8")] + pub rate_casino: f64, + #[prost(double, tag = "9")] + pub rate_casino_loosing: f64, + #[prost(double, tag = "10")] + pub rate_casino_bacara: f64, + #[prost(double, tag = "11")] + pub rate_casino_roulette: f64, + #[prost(double, tag = "12")] + pub rate_casino_dragon_tiger: f64, + #[prost(double, tag = "13")] + pub rate_slot: f64, + #[prost(double, tag = "14")] + pub rate_slot_loosing: f64, + #[prost(double, tag = "15")] + pub rate_powerball_single: f64, + #[prost(double, tag = "16")] + pub rate_powerball_combo: f64, + #[prost(double, tag = "17")] + pub rate_powerladder_single: f64, + #[prost(double, tag = "18")] + pub rate_powerladder_combo: f64, + #[prost(double, tag = "19")] + pub rate_eos_single: f64, + #[prost(double, tag = "20")] + pub rate_eos_combo: f64, + #[prost(double, tag = "21")] + pub rate_bogglepowerball_single: f64, + #[prost(double, tag = "22")] + pub rate_bogglepowerball_combo: f64, + #[prost(uint64, tag = "23")] + pub created_at: u64, + #[prost(uint64, tag = "24")] + pub updated_at: u64, +} +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[repr(i32)] +pub enum SettlementType { + StNone = 0, + Rolling = 1, + Loosing = 2, +} +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[repr(i32)] +pub enum ManualPaymentType { + MptNone = 0, + Disable = 1, + AllChildPartner = 2, + OnlyDirectPartner = 3, +} diff --git a/src/models/mod.rs b/src/models/mod.rs index 3f5bedf..b29d485 100644 --- a/src/models/mod.rs +++ b/src/models/mod.rs @@ -6,11 +6,13 @@ pub mod member_bank_account; pub mod member_bank_deposit; pub mod member_bank_withdraw; pub mod member_class; +pub mod member_game_setting; pub mod member_level; pub mod member_permission; pub mod member_referrer; pub mod member_role; pub mod member_session; +pub mod member_settlement_setting; pub mod resource; pub mod resource_action; pub mod role; diff --git a/src/ss/member_game_setting.rs b/src/ss/member_game_setting.rs new file mode 100644 index 0000000..31f22f8 --- /dev/null +++ b/src/ss/member_game_setting.rs @@ -0,0 +1,193 @@ +const SUBJECT: &str = "bet.beteran.ss.member_game_setting"; + +pub const SUBJECT_CREATE_MEMBER_GAME_SETTING: &str = + const_format::concatcp!(SUBJECT, ".CreateMemberGameSetting"); +pub const SUBJECT_LIST_MEMBER_GAME_SETTINGS: &str = + const_format::concatcp!(SUBJECT, ".ListMemberGameSettings"); +pub const SUBJECT_GET_MEMBER_GAME_SETTING: &str = + const_format::concatcp!(SUBJECT, ".GetMemberGameSetting"); +pub const SUBJECT_UPDATE_MEMBER_GAME_SETTING: &str = + const_format::concatcp!(SUBJECT, ".UpdateMemberGameSetting"); +pub const SUBJECT_DELETE_MEMBER_GAME_SETTING: &str = + const_format::concatcp!(SUBJECT, ".DeleteMemberGameSetting"); + +/// subject = bet.beteran.ss.member_game_setting.CreateMemberGameSetting +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateMemberGameSettingRequest { + #[prost(message, optional, tag = "1")] + pub client: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub request: ::core::option::Option, +} +/// Nested message and enum types in `CreateMemberGameSettingRequest`. +pub mod create_member_game_setting_request { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Request { + #[prost(string, tag = "1")] + pub member_id: ::prost::alloc::string::String, + } +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateMemberGameSettingResponse { + #[prost(message, optional, tag = "1")] + pub error: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// Nested message and enum types in `CreateMemberGameSettingResponse`. +pub mod create_member_game_setting_response { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, optional, tag = "1")] + pub member_game_setting: + ::core::option::Option, + } +} +/// subject = bet.beteran.ss.member_game_setting.ListMemberGameSettings +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListMemberGameSettingsRequest { + #[prost(message, optional, tag = "1")] + pub client: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub request: ::core::option::Option, +} +/// Nested message and enum types in `ListMemberGameSettingsRequest`. +pub mod list_member_game_settings_request { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Request { + #[prost(message, optional, tag = "1")] + pub pagination: ::core::option::Option, + #[prost(message, repeated, tag = "2")] + pub sorts: ::prost::alloc::vec::Vec, + #[prost(message, optional, tag = "3")] + pub search: ::core::option::Option, + } + /// Nested message and enum types in `Request`. + pub mod request { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Search { + #[prost(string, optional, tag = "1")] + pub member_id: ::core::option::Option<::prost::alloc::string::String>, + } + } +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListMemberGameSettingsResponse { + #[prost(message, optional, tag = "1")] + pub error: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// Nested message and enum types in `ListMemberGameSettingsResponse`. +pub mod list_member_game_settings_response { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, repeated, tag = "1")] + pub member_game_settings: + ::prost::alloc::vec::Vec, + } +} +/// subject = bet.beteran.ss.member_game_setting.GetMemberGameSetting +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetMemberGameSettingRequest { + #[prost(message, optional, tag = "1")] + pub client: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub request: ::core::option::Option, +} +/// Nested message and enum types in `GetMemberGameSettingRequest`. +pub mod get_member_game_setting_request { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Request { + #[prost(string, tag = "1")] + pub id: ::prost::alloc::string::String, + } +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetMemberGameSettingResponse { + #[prost(message, optional, tag = "1")] + pub error: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// Nested message and enum types in `GetMemberGameSettingResponse`. +pub mod get_member_game_setting_response { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, optional, tag = "1")] + pub member_game_setting: + ::core::option::Option, + } +} +/// subject = bet.beteran.ss.member_game_setting.UpdateMemberGameSetting +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UpdateMemberGameSettingRequest { + #[prost(message, optional, tag = "1")] + pub client: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub request: ::core::option::Option, +} +/// Nested message and enum types in `UpdateMemberGameSettingRequest`. +pub mod update_member_game_setting_request { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Request { + #[prost(string, tag = "1")] + pub id: ::prost::alloc::string::String, + #[prost(bool, tag = "2")] + pub can_bet_casino: bool, + #[prost(bool, tag = "3")] + pub can_bet_slot: bool, + #[prost(bool, tag = "4")] + pub can_bet_powerball: bool, + #[prost(bool, tag = "5")] + pub can_bet_powerladder: bool, + #[prost(bool, tag = "6")] + pub can_bet_eos: bool, + #[prost(bool, tag = "7")] + pub can_bet_bogglepowerball: bool, + } +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UpdateMemberGameSettingResponse { + #[prost(message, optional, tag = "1")] + pub error: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// Nested message and enum types in `UpdateMemberGameSettingResponse`. +pub mod update_member_game_setting_response { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, optional, tag = "1")] + pub member_game_setting: + ::core::option::Option, + } +} +/// subject = bet.beteran.ss.member_game_setting.DeleteMemberGameSetting +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DeleteMemberGameSettingRequest { + #[prost(message, optional, tag = "1")] + pub client: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub request: ::core::option::Option, +} +/// Nested message and enum types in `DeleteMemberGameSettingRequest`. +pub mod delete_member_game_setting_request { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Request { + #[prost(string, tag = "1")] + pub id: ::prost::alloc::string::String, + } +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DeleteMemberGameSettingResponse { + #[prost(message, optional, tag = "1")] + pub error: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// Nested message and enum types in `DeleteMemberGameSettingResponse`. +pub mod delete_member_game_setting_response { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result {} +} diff --git a/src/ss/member_settlement_setting.rs b/src/ss/member_settlement_setting.rs new file mode 100644 index 0000000..285139a --- /dev/null +++ b/src/ss/member_settlement_setting.rs @@ -0,0 +1,227 @@ +const SUBJECT: &str = "bet.beteran.ss.member_settlement_setting"; + +pub const SUBJECT_CREATE_MEMBER_SETTLEMENT_SETTING: &str = + const_format::concatcp!(SUBJECT, ".CreateMemberSettlementSetting"); +pub const SUBJECT_LIST_MEMBER_SETTLEMENT_SETTINGS: &str = + const_format::concatcp!(SUBJECT, ".ListMemberSettlementSettings"); +pub const SUBJECT_GET_MEMBER_SETTLEMENT_SETTING: &str = + const_format::concatcp!(SUBJECT, ".GetMemberSettlementSetting"); +pub const SUBJECT_UPDATE_MEMBER_SETTLEMENT_SETTING: &str = + const_format::concatcp!(SUBJECT, ".UpdateMemberSettlementSetting"); +pub const SUBJECT_DELETE_MEMBER_SETTLEMENT_SETTING: &str = + const_format::concatcp!(SUBJECT, ".DeleteMemberSettlementSetting"); + +/// subject = bet.beteran.ss.member_settlement_setting.CreateMemberSettlementSetting +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateMemberSettlementSettingRequest { + #[prost(message, optional, tag = "1")] + pub client: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub request: ::core::option::Option, +} +/// Nested message and enum types in `CreateMemberSettlementSettingRequest`. +pub mod create_member_settlement_setting_request { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Request { + #[prost(string, tag = "1")] + pub member_id: ::prost::alloc::string::String, + } +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateMemberSettlementSettingResponse { + #[prost(message, optional, tag = "1")] + pub error: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// Nested message and enum types in `CreateMemberSettlementSettingResponse`. +pub mod create_member_settlement_setting_response { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, optional, tag = "1")] + pub member_settlement_setting: + ::core::option::Option, + } +} +/// subject = bet.beteran.ss.member_settlement_setting.ListMemberSettlementSettings +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListMemberSettlementSettingsRequest { + #[prost(message, optional, tag = "1")] + pub client: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub request: ::core::option::Option, +} +/// Nested message and enum types in `ListMemberSettlementSettingsRequest`. +pub mod list_member_settlement_settings_request { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Request { + #[prost(message, optional, tag = "1")] + pub pagination: ::core::option::Option, + #[prost(message, repeated, tag = "2")] + pub sorts: ::prost::alloc::vec::Vec, + #[prost(message, optional, tag = "3")] + pub search: ::core::option::Option, + } + /// Nested message and enum types in `Request`. + pub mod request { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Search { + #[prost(string, optional, tag = "1")] + pub member_id: ::core::option::Option<::prost::alloc::string::String>, + } + } +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListMemberSettlementSettingsResponse { + #[prost(message, optional, tag = "1")] + pub error: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// Nested message and enum types in `ListMemberSettlementSettingsResponse`. +pub mod list_member_settlement_settings_response { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, repeated, tag = "1")] + pub member_settlement_settings: + ::prost::alloc::vec::Vec, + } +} +/// subject = bet.beteran.ss.member_settlement_setting.GetMemberSettlementSetting +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetMemberSettlementSettingRequest { + #[prost(message, optional, tag = "1")] + pub client: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub request: ::core::option::Option, +} +/// Nested message and enum types in `GetMemberSettlementSettingRequest`. +pub mod get_member_settlement_setting_request { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Request { + #[prost(string, tag = "1")] + pub id: ::prost::alloc::string::String, + } +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetMemberSettlementSettingResponse { + #[prost(message, optional, tag = "1")] + pub error: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// Nested message and enum types in `GetMemberSettlementSettingResponse`. +pub mod get_member_settlement_setting_response { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, optional, tag = "1")] + pub member_settlement_setting: + ::core::option::Option, + } +} +/// subject = bet.beteran.ss.member_settlement_setting.UpdateMemberSettlementSetting +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UpdateMemberSettlementSettingRequest { + #[prost(message, optional, tag = "1")] + pub client: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub request: ::core::option::Option, +} +/// Nested message and enum types in `UpdateMemberSettlementSettingRequest`. +pub mod update_member_settlement_setting_request { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Request { + #[prost(string, tag = "1")] + pub id: ::prost::alloc::string::String, + #[prost(bool, tag = "2")] + pub can_exchange: bool, + #[prost(bool, tag = "3")] + pub can_first_charge_comp: bool, + #[prost(bool, tag = "4")] + pub can_per_charge_comp: bool, + #[prost( + enumeration = "crate::models::member_settlement_setting::SettlementType", + tag = "5" + )] + pub settlement_type: i32, + #[prost( + enumeration = "crate::models::member_settlement_setting::ManualPaymentType", + tag = "6" + )] + pub manual_payment_type_for_partner: i32, + #[prost(double, tag = "7")] + pub rate_casino: f64, + #[prost(double, tag = "8")] + pub rate_casino_loosing: f64, + #[prost(double, tag = "9")] + pub rate_casino_bacara: f64, + #[prost(double, tag = "10")] + pub rate_casino_roulette: f64, + #[prost(double, tag = "11")] + pub rate_casino_dragon_tiger: f64, + #[prost(double, tag = "12")] + pub rate_slot: f64, + #[prost(double, tag = "13")] + pub rate_slot_loosing: f64, + #[prost(double, tag = "14")] + pub rate_powerball_single: f64, + #[prost(double, tag = "15")] + pub rate_powerball_combo: f64, + #[prost(double, tag = "16")] + pub rate_powerladder_single: f64, + #[prost(double, tag = "17")] + pub rate_powerladder_combo: f64, + #[prost(double, tag = "18")] + pub rate_eos_single: f64, + #[prost(double, tag = "19")] + pub rate_eos_combo: f64, + #[prost(double, tag = "20")] + pub rate_bogglepowerball_single: f64, + #[prost(double, tag = "21")] + pub rate_bogglepowerball_combo: f64, + } +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UpdateMemberSettlementSettingResponse { + #[prost(message, optional, tag = "1")] + pub error: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// Nested message and enum types in `UpdateMemberSettlementSettingResponse`. +pub mod update_member_settlement_setting_response { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, optional, tag = "1")] + pub member_settlement_setting: + ::core::option::Option, + } +} +/// subject = bet.beteran.ss.member_settlement_setting.DeleteMemberSettlementSetting +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DeleteMemberSettlementSettingRequest { + #[prost(message, optional, tag = "1")] + pub client: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub request: ::core::option::Option, +} +/// Nested message and enum types in `DeleteMemberSettlementSettingRequest`. +pub mod delete_member_settlement_setting_request { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Request { + #[prost(string, tag = "1")] + pub id: ::prost::alloc::string::String, + } +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DeleteMemberSettlementSettingResponse { + #[prost(message, optional, tag = "1")] + pub error: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// Nested message and enum types in `DeleteMemberSettlementSettingResponse`. +pub mod delete_member_settlement_setting_response { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result {} +} diff --git a/src/ss/mod.rs b/src/ss/mod.rs index e0aa012..b6fe34b 100644 --- a/src/ss/mod.rs +++ b/src/ss/mod.rs @@ -6,6 +6,8 @@ pub mod member_bank_account; pub mod member_bank_deposit; pub mod member_bank_withdraw; pub mod member_class; +pub mod member_game_setting; pub mod member_level; pub mod member_referrer; +pub mod member_settlement_setting; pub mod site;