Compare commits

...

109 Commits

Author SHA1 Message Date
231d19303b subject is added 2022-09-16 16:09:28 +00:00
b0212ea432 member_balance is added 2022-09-16 14:17:23 +00:00
8aa5fade35 member model is modified 2022-09-16 10:29:28 +00:00
0726d405cf methods are added 2022-09-07 03:56:06 +00:00
274d229914 model is modified 2022-09-06 12:13:31 +00:00
143c0bd7c3 model is modified 2022-09-05 14:33:43 +00:00
7ffd576edb models are modified 2022-09-01 17:17:02 +00:00
799fff847d bug fixed 2022-09-01 09:36:30 +00:00
ad7fd38f81 model is modified 2022-09-01 08:59:37 +00:00
5065542ce6 model is modified 2022-09-01 08:25:39 +00:00
dcc2798010 models are modified 2022-09-01 08:05:55 +00:00
f609797fc2 bug fixed 2022-09-01 03:34:19 +00:00
8a3f5cfccb model is changed 2022-09-01 03:25:13 +00:00
fec6549ebc model is modified 2022-08-31 13:36:21 +00:00
ae5b685783 betting is added 2022-08-31 08:41:18 +00:00
5fc2177fcc bug fixed 2022-08-30 08:38:15 +00:00
d74e4851c9 data type of money is changed 2022-08-30 08:03:27 +00:00
927203a136 get_game_url is modified 2022-08-29 08:41:49 +00:00
c01448ae88 get_game_url is added 2022-08-29 08:21:28 +00:00
5268098f3b name is changed 2022-08-29 04:07:11 +00:00
b2ef0fc628 vendor_id of game is changed to kgon_vendor_id 2022-08-29 03:57:57 +00:00
1d82a39c6e .devcontainer is changed 2022-08-28 15:26:26 +00:00
ea23af9348 return type is changed 2022-08-28 13:39:46 +00:00
1ebb3c8152 events are added 2022-08-28 03:11:14 +00:00
b1cf415efd bug fixed 2022-08-27 07:04:40 +00:00
c626fcdae4 member_session is added 2022-08-27 06:42:18 +00:00
84c971ac62 bug fixed 2022-08-27 06:10:45 +00:00
cd6dbe0429 create_member of ss is modified 2022-08-24 07:07:50 +00:00
35fd929de3 member, member_bank_account are modified 2022-08-24 06:10:38 +00:00
1af1ce0025 member_game_setting, member_settlement_setting are modified 2022-08-22 08:18:30 +00:00
e43def8d2a member is modified 2022-08-22 08:01:33 +00:00
e593fcb8bb member_game_setting, member_settlement_setting are added 2022-08-22 06:42:21 +00:00
9f4f38346c signinWithoutSecurityCode is added 2022-08-20 12:55:09 +00:00
88fd2237c6 member_referrer is modified 2022-08-20 09:18:39 +00:00
75410ef97b api for frontend is added 2022-08-19 07:46:16 +00:00
4ae9b3c9f0 bug fixed 2022-08-19 06:55:47 +00:00
d6f72df7b1 models are modified 2022-08-19 06:14:35 +00:00
e64f68744a bug fixed 2022-08-18 06:58:26 +00:00
50592ef88e bug fixed 2022-08-18 04:10:09 +00:00
4a746566ff vendor is added 2022-08-18 03:40:24 +00:00
479d00049f events of member are modified 2022-08-15 06:40:09 +00:00
a8e670f3b6 events are added 2022-08-15 06:35:07 +00:00
b7d4f4e383 update_member is modified 2022-08-15 04:37:31 +00:00
89c1695e59 member, member_bank_account are modified 2022-08-15 04:08:32 +00:00
84d9f84e5a create_member is modified 2022-08-14 15:18:30 +00:00
582f8de241 bug fixed 2022-08-14 08:44:06 +00:00
fe94718f06 bug fixed 2022-08-14 08:26:11 +00:00
f4395b7350 bug fixed 2022-08-14 07:28:36 +00:00
9ca07a9319 bug fixed 2022-08-14 07:18:35 +00:00
f9ac4e030e bug fixed 2022-08-14 06:28:58 +00:00
b63726267d bug fixed 2022-08-14 06:14:46 +00:00
31b49c47bf bug fixed 2022-08-14 05:22:26 +00:00
1a8cd9a5ad bug fixed 2022-08-14 05:20:21 +00:00
a2f8a2ea09 bug fixed 2022-08-14 02:59:14 +00:00
e1c00ba2a9 bug fixed 2022-08-14 02:52:58 +00:00
18449cc1dd bug fixed 2022-08-14 02:48:51 +00:00
a23a250f7b bug fixed 2022-08-13 20:50:52 +00:00
28ce072090 bug fixed 2022-08-13 20:46:59 +00:00
6f3ab84a9b refactoring 2022-08-13 19:02:21 +00:00
5ddc29da16 bug fixed 2022-08-12 09:40:53 +00:00
2b979d9d19 bug fixed 2022-08-12 08:56:30 +00:00
3615cf08d5 bug fixed 2022-08-12 08:36:10 +00:00
34c78e54dc bug fixed 2022-08-12 07:08:36 +00:00
1117c0080f bug fixed 2022-08-12 06:57:47 +00:00
4480475917 bug fixed 2022-08-12 06:51:15 +00:00
9fe643031a bug fixed 2022-08-12 06:46:46 +00:00
9883277af3 bug fixed 2022-08-12 06:17:33 +00:00
56c0211617 bank is added 2022-08-12 06:13:39 +00:00
f6beee52cb bug fixed 2022-08-11 07:59:40 +00:00
8d16032a56 bug fixed 2022-08-11 07:25:51 +00:00
acdb183c08 actions of member are added 2022-08-11 07:23:33 +00:00
be2be6107e event is added 2022-08-11 05:53:17 +00:00
cc13112acc refactoring 2022-08-11 01:04:13 +00:00
64c2dd0164 name is changed 2022-08-10 10:14:10 +00:00
8b8b5f7acf member is added 2022-08-10 08:19:10 +00:00
f20d3aa7e1 site is changed 2022-08-10 02:32:52 +00:00
56044e8e37 site is modified 2022-08-10 01:49:44 +00:00
90d2fb4ae0 site is added 2022-08-08 08:39:49 +00:00
3e2df9d4a7 site is added 2022-08-08 08:24:08 +00:00
047455a888 name is changed 2022-08-08 07:13:21 +00:00
eac2bea1e5 bug fixed 2022-08-08 02:44:11 +00:00
62cff75a51 name is changed 2022-08-06 04:00:35 +00:00
b84e98326c name is changed 2022-08-06 03:57:28 +00:00
ade8676551 configuration of devcontainer is changed 2022-08-05 07:31:34 +00:00
dafa913f51 constants are added 2022-08-05 04:57:07 +00:00
4368079dfc InvalidParams is removed 2022-08-05 03:43:52 +00:00
21ed13a3af InvalidParams is added 2022-08-04 11:41:02 +00:00
d0e1e2cf46 from i32 is added 2022-08-04 09:13:23 +00:00
40fe5e8e86 message is required 2022-08-04 08:51:38 +00:00
5aae301242 invalid params is added 2022-08-04 08:45:34 +00:00
63748f4d80 responses are modified 2022-08-03 07:26:34 +00:00
174ba470ed responses are modified 2022-08-03 06:47:15 +00:00
e5f4b3c8c2 display trait is added 2022-08-03 06:19:47 +00:00
8b28a1b19c subjects are changed 2022-08-02 08:44:57 +00:00
f220043646 version up 2022-08-02 07:46:37 +00:00
ea0e9db16f variable name is changed 2022-07-27 07:41:48 +00:00
578c3f8cc3 name is changed 2022-07-27 07:03:02 +00:00
ae71cd9e1d client is changed 2022-07-27 06:46:12 +00:00
9390008044 common is added 2022-07-25 08:14:02 +00:00
f8373270e9 protocols are modified 2022-07-17 05:47:16 +00:00
4f52195ab1 captcha is added 2022-07-15 06:47:37 +00:00
8321416df3 serde_json is added 2022-07-15 06:36:05 +00:00
a572e8f45d client info is added 2022-07-15 06:14:26 +00:00
d65e294c42 site_url is added 2022-07-15 04:13:28 +00:00
cabe06d9b9 site_url is added 2022-07-15 04:10:17 +00:00
8616b0b9b1 ss-member-identity is added 2022-07-13 08:44:58 +00:00
89522014a0 names of subject are added 2022-07-12 06:50:40 +00:00
e332e8976d bug fixed 2022-07-12 06:44:50 +00:00
610dac69a8 initialized 2022-07-12 06:43:07 +00:00
105 changed files with 7510 additions and 0 deletions

9
.devcontainer/Dockerfile Normal file
View File

@ -0,0 +1,9 @@
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.245.0/containers/debian/.devcontainer/base.Dockerfile
# [Choice] Debian version (use bullseye on local arm64/Apple Silicon): bullseye, buster
ARG VARIANT="buster"
FROM mcr.microsoft.com/vscode/devcontainers/base:0-${VARIANT}
# ** [Optional] Uncomment this section to install additional packages. **
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# && apt-get -y install --no-install-recommends <your-package-list-here>

View File

@ -0,0 +1,66 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.245.0/containers/ubuntu
{
"name": "beteran-protobuf-rust",
"build": {
"dockerfile": "Dockerfile",
"args": {
// Use the VARIANT arg to pick a Debian OS version: buster, bullseye
// Use bullseye when on local on arm64/Apple Silicon.
"VARIANT": "bullseye"
}
},
"runArgs": [
"--cap-add=SYS_PTRACE",
"--security-opt",
"seccomp=unconfined"
],
// Use this environment variable if you need to bind mount your local source code into a new container.
"remoteEnv": {
"LOCAL_WORKSPACE_FOLDER": "${localWorkspaceFolder}"
},
// Configure tool-specific properties.
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
// Set *default* container specific settings.json values on container create.
"settings": {
"lldb.verboseLogging": true,
"lldb.executable": "/usr/bin/lldb",
// VS Code don't watch files under ./target
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/target/**": true
},
"rust-analyzer.checkOnSave.command": "clippy",
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.formatOnSave": true
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"donjayamanne.githistory",
"eamodio.gitlens",
"mhutchie.git-graph",
"ms-azuretools.vscode-docker",
"mutantdino.resourcemonitor",
"rust-lang.rust-analyzer",
"serayuzgur.crates",
"tamasfe.even-better-toml",
"vadimcn.vscode-lldb"
]
}
},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "uname -a",
"postCreateCommand": "bash ./.devcontainer/scripts/postCreateCommand.sh",
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "vscode",
"features": {
"git": "latest",
"rust": "latest"
}
}

View File

@ -0,0 +1,5 @@
[toolchain]
channel = "stable"
profile = "minimal"
components = ["clippy", "rustfmt"]
targets = []

View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
set -e

7
.gitignore vendored Normal file
View File

@ -0,0 +1,7 @@
.DS_Store
/build
# Added by cargo
/target
Cargo.lock

75
.rustfmt.toml Normal file
View File

@ -0,0 +1,75 @@
# https://rust-lang.github.io/rustfmt/?version=v1.4.38&search=
array_width = 60
attr_fn_like_width = 70
binop_separator = "Front" # "Front", "Back"
blank_lines_lower_bound = 0
blank_lines_upper_bound = 1
brace_style = "SameLineWhere" #"AlwaysNextLine", "PreferSameLine", "SameLineWhere"
chain_width = 60
color = "Auto" #"Auto", "Always", "Never"
combine_control_expr = true # true, false
comment_width = 80
condense_wildcard_suffixes = false # true, false
control_brace_style = "AlwaysSameLine" # "AlwaysNextLine", "AlwaysSameLine", "ClosingNextLine"
disable_all_formatting = false # true, false
edition = "2015" # "2015", "2018", "2021"
empty_item_single_line = true # true, false
enum_discrim_align_threshold = 0
error_on_line_overflow = false # true, false
error_on_unformatted = false # true, false
fn_args_layout = "Tall" # "Compressed", "Tall", "Vertical"
fn_call_width = 60
fn_single_line = false # true, false
force_explicit_abi = true # true, false
force_multiline_blocks = false # true, false
format_code_in_doc_comments = false # true, false
format_generated_files = false # true, false
format_macro_matchers = false # true, false
format_macro_bodies = true # true, false
format_strings = false # true, false
group_imports = "Preserve" # "Preserve", "StdExternalCrate"
hard_tabs = false # true, false
hex_literal_case = "Preserve" # "Upper", "Lower"
hide_parse_errors = false # true, false
ignore = []
imports_indent = "Block" # "Block", "Visual"
imports_layout = "Mixed" # "Horizontal", "HorizontalVertical", "Mixed", "Vertical"
indent_style = "Block" # "Block", "Visual"
inline_attribute_width = 0
license_template_path = ""
match_arm_blocks = true # true, false
match_arm_leading_pipes = "Never" # "Always", "Never", "Preserve"
match_block_trailing_comma = false # true, false
max_width = 100
merge_derives = true # true, false
imports_granularity = "Preserve" # "Preserve", "Crate", "Module", "Item", "One"
merge_imports = false # true, false
newline_style = "Auto" # "Auto", "Native", "Unix", "Windows"
normalize_comments = false # true, false
normalize_doc_attributes = false # true, false
overflow_delimited_expr = false # true, false
remove_nested_parens = true # true, false
reorder_impl_items = false # true, false
reorder_imports = true # true, false
reorder_modules = true # true, false
report_fixme = "Never" # "Always", "Unnumbered", "Never"
report_todo = "Never" # "Always", "Unnumbered", "Never"
skip_children = false # true, false
single_line_if_else_max_width = 50
space_after_colon = true # true, false
space_before_colon = false # true, false
spaces_around_ranges = false # true, false
struct_field_align_threshold = 0
struct_lit_single_line = true # true, false
struct_lit_width = 18
struct_variant_width = 35
tab_spaces = 2
trailing_comma = "Vertical" # "Always", "Never", "Vertical"
trailing_semicolon = true # true, false
type_punctuation_density = "Wide" # "Compressed", "Wide"
unstable_features = false # true, false
use_field_init_shorthand = false # true, false
use_small_heuristics = "Default" # "Default", "Off", "Max"
use_try_shorthand = false # true, false
where_single_line = false # true, false
wrap_comments = false # true, false

15
Cargo.toml Normal file
View File

@ -0,0 +1,15 @@
[package]
name = "beteran-protobuf-rust"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
name = "beteran_protobuf_rust"
path = "./src/lib.rs"
[dependencies]
prost = { version = "0" }
serde = { version = "1", features = ["derive"] }
serde_json = { version = "1" }
const_format = { version = "0" }

96
src/c2se/api/betting.rs Normal file
View File

@ -0,0 +1,96 @@
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListBettingHistoryRequest {
#[prost(message, optional, tag = "1")]
pub pagination: ::core::option::Option<crate::protobuf::pagination::Pagination>,
#[prost(message, repeated, tag = "2")]
pub sorts: ::prost::alloc::vec::Vec<crate::protobuf::pagination::Sort>,
#[prost(message, optional, tag = "3")]
pub search: ::core::option::Option<list_betting_history_request::Search>,
}
/// Nested message and enum types in `ListBettingHistoryRequest`.
pub mod list_betting_history_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Search {
#[prost(string, optional, tag = "1")]
pub member_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(uint64, optional, tag = "2")]
pub vendor_id: ::core::option::Option<u64>,
#[prost(uint64, repeated, tag = "3")]
pub vendor_ids: ::prost::alloc::vec::Vec<u64>,
#[prost(string, optional, tag = "4")]
pub vendor_name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "5")]
pub vendor_name_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(uint64, optional, tag = "6")]
pub game_id: ::core::option::Option<u64>,
#[prost(uint64, repeated, tag = "7")]
pub game_ids: ::prost::alloc::vec::Vec<u64>,
#[prost(string, optional, tag = "8")]
pub game_name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "9")]
pub game_name_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "10")]
pub game_category: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "11")]
pub game_category_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "12")]
pub game_type: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "13")]
pub game_type_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "14")]
pub currency: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "15")]
pub currency_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "16")]
pub key: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "17")]
pub key_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "18")]
pub ref_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "19")]
pub ref_id_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "20")]
pub o_ref_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "21")]
pub o_ref_id_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "22")]
pub group_key: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "23")]
pub group_key_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(bool, optional, tag = "24")]
pub is_bonus: ::core::option::Option<bool>,
#[prost(bool, optional, tag = "25")]
pub is_promo: ::core::option::Option<bool>,
#[prost(bool, optional, tag = "26")]
pub is_jackpot: ::core::option::Option<bool>,
#[prost(string, optional, tag = "27")]
pub site_username: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "28")]
pub site_username_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "29")]
pub betting_type: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "30")]
pub betting_type_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "31")]
pub category: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "32")]
pub category_like: ::core::option::Option<::prost::alloc::string::String>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListBettingHistoryResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<list_betting_history_response::Result>,
}
/// Nested message and enum types in `ListBettingHistoryResponse`.
pub mod list_betting_history_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(uint64, tag = "1")]
pub total_count: u64,
#[prost(message, repeated, tag = "2")]
pub betting_history: ::prost::alloc::vec::Vec<crate::models::api::betting::BettingHistoryModel>,
}
}

68
src/c2se/api/game.rs Normal file
View File

@ -0,0 +1,68 @@
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListGamesRequest {
#[prost(message, optional, tag = "1")]
pub pagination: ::core::option::Option<crate::protobuf::pagination::Pagination>,
#[prost(message, repeated, tag = "2")]
pub sorts: ::prost::alloc::vec::Vec<crate::protobuf::pagination::Sort>,
#[prost(message, optional, tag = "3")]
pub search: ::core::option::Option<list_games_request::Search>,
}
/// Nested message and enum types in `ListGamesRequest`.
pub mod list_games_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Search {
#[prost(uint64, optional, tag = "1")]
pub parent_id: ::core::option::Option<u64>,
#[prost(string, optional, tag = "2")]
pub key_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "3")]
pub platform_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "4")]
pub category_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "5")]
pub game_type_like: ::core::option::Option<::prost::alloc::string::String>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListGamesResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<list_games_response::Result>,
}
/// Nested message and enum types in `ListGamesResponse`.
pub mod list_games_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(uint64, tag = "1")]
pub total_count: u64,
#[prost(message, repeated, tag = "2")]
pub games: ::prost::alloc::vec::Vec<crate::models::api::game::Game>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetGameUrlRequest {
#[prost(string, tag = "1")]
pub vendor_key: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub game_key: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetGameUrlResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<get_game_url_response::Result>,
}
/// Nested message and enum types in `GetGameUrlResponse`.
pub mod get_game_url_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(uint64, tag = "1")]
pub user_id: u64,
#[prost(double, tag = "2")]
pub balance: f64,
#[prost(string, tag = "3")]
pub url: ::prost::alloc::string::String,
}
}

3
src/c2se/api/mod.rs Normal file
View File

@ -0,0 +1,3 @@
pub mod betting;
pub mod game;
pub mod vendor;

44
src/c2se/api/vendor.rs Normal file
View File

@ -0,0 +1,44 @@
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListVendorsRequest {
#[prost(message, optional, tag = "1")]
pub pagination: ::core::option::Option<crate::protobuf::pagination::Pagination>,
#[prost(message, repeated, tag = "2")]
pub sorts: ::prost::alloc::vec::Vec<crate::protobuf::pagination::Sort>,
#[prost(message, optional, tag = "3")]
pub search: ::core::option::Option<list_vendors_request::Search>,
}
/// Nested message and enum types in `ListVendorsRequest`.
pub mod list_vendors_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Search {
#[prost(uint64, optional, tag = "1")]
pub company_id: ::core::option::Option<u64>,
#[prost(uint64, optional, tag = "2")]
pub vendor_id: ::core::option::Option<u64>,
#[prost(string, optional, tag = "3")]
pub key_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "4")]
pub name_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "5")]
pub category_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "6")]
pub is_enable: ::core::option::Option<::prost::alloc::string::String>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListVendorsResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<list_vendors_response::Result>,
}
/// Nested message and enum types in `ListVendorsResponse`.
pub mod list_vendors_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(uint64, tag = "1")]
pub total_count: u64,
#[prost(message, repeated, tag = "2")]
pub vendors: ::prost::alloc::vec::Vec<crate::models::api::vendor::Vendor>,
}
}

View File

@ -0,0 +1,4 @@
const SUBJECT: &str = "bet.beteran.c2se.backend.api.betting";
pub const SUBJECT_LIST_BETTING_HISTORY: &str =
const_format::concatcp!(SUBJECT, ".ListBettingHistory");

View File

@ -0,0 +1,3 @@
const SUBJECT: &str = "bet.beteran.c2se.backend.api.game";
pub const SUBJECT_LIST_GAMES: &str = const_format::concatcp!(SUBJECT, ".ListGames");

View File

@ -0,0 +1,3 @@
pub mod betting;
pub mod game;
pub mod vendor;

View File

@ -0,0 +1,3 @@
const SUBJECT: &str = "bet.beteran.c2se.backend.api.vendor";
pub const SUBJECT_LIST_VENDORS: &str = const_format::concatcp!(SUBJECT, ".ListVendors");

7
src/c2se/backend/bank.rs Normal file
View File

@ -0,0 +1,7 @@
const SUBJECT: &str = "bet.beteran.c2se.backend.bank";
pub const SUBJECT_CREATE_BANK: &str = const_format::concatcp!(SUBJECT, ".CreateBank");
pub const SUBJECT_LIST_BANKS: &str = const_format::concatcp!(SUBJECT, ".ListBanks");
pub const SUBJECT_GET_BANK: &str = const_format::concatcp!(SUBJECT, ".GetBank");
pub const SUBJECT_UPDATE_BANK: &str = const_format::concatcp!(SUBJECT, ".UpdateBank");
pub const SUBJECT_DELETE_BANK: &str = const_format::concatcp!(SUBJECT, ".DeleteBank");

View File

@ -0,0 +1,8 @@
const SUBJECT: &str = "bet.beteran.c2se.backend.identity";
pub const SUBJECT_CHECK_USERNAME_FOR_DUPLICATION: &str =
const_format::concatcp!(SUBJECT, ".CheckUsernameForDuplication");
pub const SUBJECT_CHECK_NICKNAME_FOR_DUPLICATION: &str =
const_format::concatcp!(SUBJECT, ".CheckNicknameForDuplication");
pub const SUBJECT_CAPTCHA: &str = const_format::concatcp!(SUBJECT, ".Captcha");
pub const SUBJECT_SIGNIN: &str = const_format::concatcp!(SUBJECT, ".Signin");

View File

@ -0,0 +1,13 @@
const SUBJECT: &str = "bet.beteran.c2se.backend.member";
pub const SUBJECT_CREATE_MEMBER: &str = const_format::concatcp!(SUBJECT, ".CreateMember");
pub const SUBJECT_LIST_MEMBERS: &str = const_format::concatcp!(SUBJECT, ".ListMembers");
pub const SUBJECT_GET_MEMBER: &str = const_format::concatcp!(SUBJECT, ".GetMember");
pub const SUBJECT_GET_MEMBER_BY_USERNAME: &str =
const_format::concatcp!(SUBJECT, ".GetMemberByUsername");
pub const SUBJECT_UPDATE_MEMBER: &str = const_format::concatcp!(SUBJECT, ".UpdateMember");
pub const SUBJECT_UPDATE_MEMBER_FOR_PASSWORD: &str =
const_format::concatcp!(SUBJECT, ".UpdateMemberForPassword");
pub const SUBJECT_UPDATE_MEMBER_FOR_STATE: &str =
const_format::concatcp!(SUBJECT, ".UpdateMemberForState");
pub const SUBJECT_DELETE_MEMBER: &str = const_format::concatcp!(SUBJECT, ".DeleteMember");

View File

@ -0,0 +1,11 @@
const SUBJECT: &str = "bet.beteran.c2se.backend.member_balance";
pub const SUBJECT_CREATE_MEMBER_BALANCE: &str =
const_format::concatcp!(SUBJECT, ".CreateMemberBalance");
pub const SUBJECT_LIST_MEMBER_BALANCES: &str =
const_format::concatcp!(SUBJECT, ".ListMemberBalances");
pub const SUBJECT_GET_MEMBER_BALANCE: &str = const_format::concatcp!(SUBJECT, ".GetMemberBalance");
pub const SUBJECT_UPDATE_MEMBER_BALANCE: &str =
const_format::concatcp!(SUBJECT, ".UpdateMemberBalance");
pub const SUBJECT_DELETE_MEMBER_BALANCE: &str =
const_format::concatcp!(SUBJECT, ".DeleteMemberBalance");

View File

@ -0,0 +1,14 @@
const SUBJECT: &str = "bet.beteran.c2se.backend.member_bank_account";
pub const SUBJECT_CREATE_MEMBER_BANK_ACCOUNT: &str =
const_format::concatcp!(SUBJECT, ".CreateMemberBankAccount");
pub const SUBJECT_LIST_MEMBER_BANK_ACCOUNTS: &str =
const_format::concatcp!(SUBJECT, ".ListMemberBankAccounts");
pub const SUBJECT_GET_MEMBER_BANK_ACCOUNT: &str =
const_format::concatcp!(SUBJECT, ".GetMemberBankAccount");
pub const SUBJECT_UPDATE_MEMBER_BANK_ACCOUNT: &str =
const_format::concatcp!(SUBJECT, ".UpdateMemberBankAccount");
pub const SUBJECT_UPDATE_MEMBER_BANK_ACCOUNT_FOR_EXCHANGE_PASSWORD: &str =
const_format::concatcp!(SUBJECT, ".UpdateMemberBankAccountForExchangePassword");
pub const SUBJECT_DELETE_MEMBER_BANK_ACCOUNT: &str =
const_format::concatcp!(SUBJECT, ".DeleteMemberBankAccount");

View File

@ -0,0 +1,8 @@
const SUBJECT: &str = "bet.beteran.c2se.backend.member_bank_deposit";
pub const SUBJECT_CREATE_MEMBER_BANK_DEPOSIT: &str = const_format::concatcp!(SUBJECT, ".CreateMemberBankDeposit");
pub const SUBJECT_LIST_MEMBER_BANK_DEPOSITS: &str = const_format::concatcp!(SUBJECT, ".ListMemberBankDeposits");
pub const SUBJECT_GET_MEMBER_BANK_DEPOSIT: &str = const_format::concatcp!(SUBJECT, ".GetMemberBankDeposit");
pub const SUBJECT_UPDATE_MEMBER_BANK_DEPOSIT: &str = const_format::concatcp!(SUBJECT, ".UpdateMemberBankDeposit");
pub const SUBJECT_UPDATE_MEMBER_BANK_DEPOSIT_FOR_STATE: &str = const_format::concatcp!(SUBJECT, ".UpdateMemberBankDepositForState");
pub const SUBJECT_DELETE_MEMBER_BANK_DEPOSIT: &str = const_format::concatcp!(SUBJECT, ".DeleteMemberBankDeposit");

View File

@ -0,0 +1,8 @@
const SUBJECT: &str = "bet.beteran.c2se.backend.member_bank_withdraw";
pub const SUBJECT_CREATE_MEMBER_BANK_WITHDRAW: &str = const_format::concatcp!(SUBJECT, ".CreateMemberBankWithdraw");
pub const SUBJECT_LIST_MEMBER_BANK_WITHDRAWS: &str = const_format::concatcp!(SUBJECT, ".ListMemberBankWithdraws");
pub const SUBJECT_GET_MEMBER_BANK_WITHDRAW: &str = const_format::concatcp!(SUBJECT, ".GetMemberBankWithdraw");
pub const SUBJECT_UPDATE_MEMBER_BANK_WITHDRAW: &str = const_format::concatcp!(SUBJECT, ".UpdateMemberBankWithdraw");
pub const SUBJECT_UPDATE_MEMBER_BANK_WITHDRAW_FOR_STATE: &str = const_format::concatcp!(SUBJECT, ".UpdateMemberBankWithdrawForState");
pub const SUBJECT_DELETE_MEMBER_BANK_WITHDRAW: &str = const_format::concatcp!(SUBJECT, ".DeleteMemberBankWithdraw");

View File

@ -0,0 +1,11 @@
const SUBJECT: &str = "bet.beteran.c2se.backend.member_class";
pub const SUBJECT_CREATE_MEMBER_CLASS: &str =
const_format::concatcp!(SUBJECT, ".CreateMemberClass");
pub const SUBJECT_LIST_MEMBER_CLASSES: &str =
const_format::concatcp!(SUBJECT, ".ListMemberClasses");
pub const SUBJECT_GET_MEMBER_CLASS: &str = const_format::concatcp!(SUBJECT, ".GetMemberClass");
pub const SUBJECT_UPDATE_MEMBER_CLASS: &str =
const_format::concatcp!(SUBJECT, ".UpdateMemberClass");
pub const SUBJECT_DELETE_MEMBER_CLASS: &str =
const_format::concatcp!(SUBJECT, ".DeleteMemberClass");

View File

@ -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");

View File

@ -0,0 +1,10 @@
const SUBJECT: &str = "bet.beteran.c2se.backend.member_level";
pub const SUBJECT_CREATE_MEMBER_LEVEL: &str =
const_format::concatcp!(SUBJECT, ".CreateMemberLevel");
pub const SUBJECT_LIST_MEMBER_LEVELS: &str = const_format::concatcp!(SUBJECT, ".ListMemberLevels");
pub const SUBJECT_GET_MEMBER_LEVEL: &str = const_format::concatcp!(SUBJECT, ".GetMemberLevel");
pub const SUBJECT_UPDATE_MEMBER_LEVEL: &str =
const_format::concatcp!(SUBJECT, ".UpdateMemberLevel");
pub const SUBJECT_DELETE_MEMBER_LEVEL: &str =
const_format::concatcp!(SUBJECT, ".DeleteMemberLevel");

View File

@ -0,0 +1,18 @@
const SUBJECT: &str = "bet.beteran.c2se.backend.member_referrer";
pub const SUBJECT_CREATE_MEMBER_REFERRER: &str =
const_format::concatcp!(SUBJECT, ".CreateMemberReferrer");
pub const SUBJECT_CREATE_MEMBER_REFERRERS: &str =
const_format::concatcp!(SUBJECT, ".CreateMemberReferrers");
pub const SUBJECT_LIST_MEMBER_REFERRERS: &str =
const_format::concatcp!(SUBJECT, ".ListMemberReferrers");
pub const SUBJECT_GET_MEMBER_REFERRER: &str =
const_format::concatcp!(SUBJECT, ".GetMemberReferrer");
pub const SUBJECT_GET_MEMBER_REFERRER_BY_CODE: &str =
const_format::concatcp!(SUBJECT, ".GetMemberReferrerByCode");
pub const SUBJECT_UPDATE_MEMBER_REFERRER: &str =
const_format::concatcp!(SUBJECT, ".UpdateMemberReferrer");
pub const SUBJECT_DELETE_MEMBER_REFERRER: &str =
const_format::concatcp!(SUBJECT, ".DeleteMemberReferrer");
pub const SUBJECT_DELETE_MEMBER_REFERRERS: &str =
const_format::concatcp!(SUBJECT, ".DeleteMemberReferrers");

View File

@ -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");

14
src/c2se/backend/mod.rs Normal file
View File

@ -0,0 +1,14 @@
pub mod api;
pub mod bank;
pub mod identity;
pub mod member;
pub mod member_balance;
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;

7
src/c2se/backend/site.rs Normal file
View File

@ -0,0 +1,7 @@
const SUBJECT: &str = "bet.beteran.c2se.backend.site";
pub const SUBJECT_CREATE_SITE: &str = const_format::concatcp!(SUBJECT, ".CreateSite");
pub const SUBJECT_LIST_SITES: &str = const_format::concatcp!(SUBJECT, ".ListSites");
pub const SUBJECT_GET_SITE: &str = const_format::concatcp!(SUBJECT, ".GetSite");
pub const SUBJECT_UPDATE_SITE: &str = const_format::concatcp!(SUBJECT, ".UpdateSite");
pub const SUBJECT_DELETE_SITE: &str = const_format::concatcp!(SUBJECT, ".DeleteSite");

135
src/c2se/bank.rs Normal file
View File

@ -0,0 +1,135 @@
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateBankRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(uint32, tag = "2")]
pub sort_order: u32,
#[prost(bool, tag = "3")]
pub show: bool,
#[prost(bool, tag = "4")]
pub can_use: bool,
#[prost(string, optional, tag = "5")]
pub memo: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateBankResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<create_bank_response::Result>,
}
/// Nested message and enum types in `CreateBankResponse`.
pub mod create_bank_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub bank: ::core::option::Option<crate::models::bank::Bank>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListBanksRequest {
#[prost(message, optional, tag = "1")]
pub pagination: ::core::option::Option<crate::protobuf::pagination::Pagination>,
#[prost(message, repeated, tag = "2")]
pub sorts: ::prost::alloc::vec::Vec<crate::protobuf::pagination::Sort>,
#[prost(message, optional, tag = "3")]
pub search: ::core::option::Option<list_banks_request::Search>,
}
/// Nested message and enum types in `ListBanksRequest`.
pub mod list_banks_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Search {
#[prost(string, optional, tag = "1")]
pub name_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(bool, optional, tag = "2")]
pub show: ::core::option::Option<bool>,
#[prost(bool, optional, tag = "3")]
pub can_use: ::core::option::Option<bool>,
#[prost(string, optional, tag = "4")]
pub memo_like: ::core::option::Option<::prost::alloc::string::String>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListBanksResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<list_banks_response::Result>,
}
/// Nested message and enum types in `ListBanksResponse`.
pub mod list_banks_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(uint64, tag = "1")]
pub total_count: u64,
#[prost(message, repeated, tag = "2")]
pub banks: ::prost::alloc::vec::Vec<crate::models::bank::Bank>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetBankRequest {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetBankResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<get_bank_response::Result>,
}
/// Nested message and enum types in `GetBankResponse`.
pub mod get_bank_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub bank: ::core::option::Option<crate::models::bank::Bank>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateBankRequest {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
#[prost(uint32, tag = "3")]
pub sort_order: u32,
#[prost(bool, tag = "4")]
pub show: bool,
#[prost(bool, tag = "5")]
pub can_use: bool,
#[prost(string, optional, tag = "6")]
pub memo: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateBankResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<update_bank_response::Result>,
}
/// Nested message and enum types in `UpdateBankResponse`.
pub mod update_bank_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub bank: ::core::option::Option<crate::models::bank::Bank>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteBankRequest {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteBankResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<delete_bank_response::Result>,
}
/// Nested message and enum types in `DeleteBankResponse`.
pub mod delete_bank_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {}
}

1
src/c2se/core/mod.rs Normal file
View File

@ -0,0 +1 @@
pub mod network;

3
src/c2se/core/network.rs Normal file
View File

@ -0,0 +1,3 @@
const HEADER: &str = "bet.beteran.c2se.core.network";
pub const HEADER_CLIENT: &str = const_format::concatcp!(HEADER, ".Client");

View File

@ -0,0 +1,4 @@
const SUBJECT: &str = "bet.beteran.c2se.frontend.api.game";
pub const SUBJECT_LIST_GAMES: &str = const_format::concatcp!(SUBJECT, ".ListGames");
pub const SUBJECT_GET_GAME_URL: &str = const_format::concatcp!(SUBJECT, ".GetGameUrl");

View File

@ -0,0 +1,2 @@
pub mod game;
pub mod vendor;

View File

@ -0,0 +1,3 @@
const SUBJECT: &str = "bet.beteran.c2se.frontend.api.vendor";
pub const SUBJECT_LIST_VENDORS: &str = const_format::concatcp!(SUBJECT, ".ListVendors");

View File

@ -0,0 +1,4 @@
const SUBJECT: &str = "bet.beteran.c2se.frontend.bank";
pub const SUBJECT_LIST_BANKS: &str = const_format::concatcp!(SUBJECT, ".ListBanks");
pub const SUBJECT_GET_BANK: &str = const_format::concatcp!(SUBJECT, ".GetBank");

View File

@ -0,0 +1,10 @@
const SUBJECT: &str = "bet.beteran.c2se.frontend.identity";
pub const SUBJECT_CHECK_USERNAME_FOR_DUPLICATION: &str =
const_format::concatcp!(SUBJECT, ".CheckUsernameForDuplication");
pub const SUBJECT_CHECK_NICKNAME_FOR_DUPLICATION: &str =
const_format::concatcp!(SUBJECT, ".CheckNicknameForDuplication");
pub const SUBJECT_CAPTCHA: &str = const_format::concatcp!(SUBJECT, ".Captcha");
pub const SUBJECT_SIGNIN: &str = const_format::concatcp!(SUBJECT, ".Signin");
pub const SUBJECT_SIGNIN_WITHOUT_SECURITY_CODE: &str =
const_format::concatcp!(SUBJECT, ".SigninWithoutSecurityCode");

View File

@ -0,0 +1,10 @@
const SUBJECT: &str = "bet.beteran.c2se.frontend.member";
pub const SUBJECT_CREATE_MEMBER: &str = const_format::concatcp!(SUBJECT, ".CreateMember");
pub const SUBJECT_GET_MEMBER: &str = const_format::concatcp!(SUBJECT, ".GetMember");
pub const SUBJECT_GET_MEMBER_BY_USERNAME: &str =
const_format::concatcp!(SUBJECT, ".GetMemberByUsername");
pub const SUBJECT_UPDATE_MEMBER: &str = const_format::concatcp!(SUBJECT, ".UpdateMember");
pub const SUBJECT_UPDATE_MEMBER_FOR_PASSWORD: &str =
const_format::concatcp!(SUBJECT, ".UpdateMemberForPassword");
pub const SUBJECT_DELETE_MEMBER: &str = const_format::concatcp!(SUBJECT, ".DeleteMember");

View File

@ -0,0 +1,7 @@
const SUBJECT: &str = "bet.beteran.c2se.frontend.member_balance";
pub const SUBJECT_CREATE_MEMBER_BALANCE: &str =
const_format::concatcp!(SUBJECT, ".CreateMemberBalance");
pub const SUBJECT_GET_MEMBER_BALANCE: &str = const_format::concatcp!(SUBJECT, ".GetMemberBalance");
pub const SUBJECT_UPDATE_MEMBER_BALANCE: &str =
const_format::concatcp!(SUBJECT, ".UpdateMemberBalance");

View File

@ -0,0 +1,10 @@
const SUBJECT: &str = "bet.beteran.c2se.frontend.member_bank_account";
pub const SUBJECT_CREATE_MEMBER_BANK_ACCOUNT: &str =
const_format::concatcp!(SUBJECT, ".CreateMemberBankAccount");
pub const SUBJECT_GET_MEMBER_BANK_ACCOUNT: &str =
const_format::concatcp!(SUBJECT, ".GetMemberBankAccount");
pub const SUBJECT_UPDATE_MEMBER_BANK_ACCOUNT: &str =
const_format::concatcp!(SUBJECT, ".UpdateMemberBankAccount");
pub const SUBJECT_UPDATE_MEMBER_BANK_ACCOUNT_FOR_EXCHANGE_PASSWORD: &str =
const_format::concatcp!(SUBJECT, ".UpdateMemberBankAccountForExchangePassword");

View File

@ -0,0 +1,12 @@
const SUBJECT: &str = "bet.beteran.c2se.frontend.member_bank_deposit";
pub const SUBJECT_CREATE_MEMBER_BANK_DEPOSIT: &str =
const_format::concatcp!(SUBJECT, ".CreateMemberBankDeposit");
pub const SUBJECT_LIST_MEMBER_BANK_DEPOSITS: &str =
const_format::concatcp!(SUBJECT, ".ListMemberBankDeposits");
pub const SUBJECT_GET_MEMBER_BANK_DEPOSIT: &str =
const_format::concatcp!(SUBJECT, ".GetMemberBankDeposit");
pub const SUBJECT_UPDATE_MEMBER_BANK_DEPOSIT: &str =
const_format::concatcp!(SUBJECT, ".UpdateMemberBankDeposit");
pub const SUBJECT_DELETE_MEMBER_BANK_DEPOSIT: &str =
const_format::concatcp!(SUBJECT, ".DeleteMemberBankDeposit");

View File

@ -0,0 +1,12 @@
const SUBJECT: &str = "bet.beteran.c2se.frontend.member_bank_withdraw";
pub const SUBJECT_CREATE_MEMBER_BANK_WITHDRAW: &str =
const_format::concatcp!(SUBJECT, ".CreateMemberBankWithdraw");
pub const SUBJECT_LIST_MEMBER_BANK_WITHDRAWS: &str =
const_format::concatcp!(SUBJECT, ".ListMemberBankWithdraws");
pub const SUBJECT_GET_MEMBER_BANK_WITHDRAW: &str =
const_format::concatcp!(SUBJECT, ".GetMemberBankWithdraw");
pub const SUBJECT_UPDATE_MEMBER_BANK_WITHDRAW: &str =
const_format::concatcp!(SUBJECT, ".UpdateMemberBankWithdraw");
pub const SUBJECT_DELETE_MEMBER_BANK_WITHDRAW: &str =
const_format::concatcp!(SUBJECT, ".DeleteMemberBankWithdraw");

View File

@ -0,0 +1,4 @@
const SUBJECT: &str = "bet.beteran.c2se.frontend.member_referrer";
pub const SUBJECT_GET_MEMBER_REFERRER_BY_CODE: &str =
const_format::concatcp!(SUBJECT, ".GetMemberReferrerByCode");

12
src/c2se/frontend/mod.rs Normal file
View File

@ -0,0 +1,12 @@
pub mod api;
pub mod bank;
pub mod identity;
pub mod member;
pub mod member_balance;
pub mod member_bank_account;
pub mod member_bank_deposit;
pub mod member_bank_withdraw;
pub mod member_referrer;
// pub mod member_class;
// pub mod member_level;
// pub mod site;

107
src/c2se/identity.rs Normal file
View File

@ -0,0 +1,107 @@
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CheckUsernameForDuplicationRequest {
#[prost(string, tag = "1")]
pub username: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CheckUsernameForDuplicationResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<check_username_for_duplication_response::Result>,
}
/// Nested message and enum types in `CheckUsernameForDuplicationResponse`.
pub mod check_username_for_duplication_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(bool, tag = "1")]
pub duplicated: bool,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CheckNicknameForDuplicationRequest {
#[prost(string, tag = "1")]
pub nickname: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CheckNicknameForDuplicationResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<check_nickname_for_duplication_response::Result>,
}
/// Nested message and enum types in `CheckNicknameForDuplicationResponse`.
pub mod check_nickname_for_duplication_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(bool, tag = "1")]
pub duplicated: bool,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CaptchaRequest {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CaptchaResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<captcha_response::Result>,
}
/// Nested message and enum types in `CaptchaResponse`.
pub mod captcha_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(string, tag = "1")]
pub security_code_hash: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub image: ::prost::alloc::string::String,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SigninRequest {
#[prost(string, tag = "1")]
pub security_code_hash: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub security_code: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub username: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub password: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SigninResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<signin_response::Result>,
}
/// Nested message and enum types in `SigninResponse`.
pub mod signin_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(string, tag = "1")]
pub access_token: ::prost::alloc::string::String,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SigninWithoutSecurityCodeRequest {
#[prost(string, tag = "1")]
pub username: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub password: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SigninWithoutSecurityCodeResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<signin_without_security_code_response::Result>,
}
/// Nested message and enum types in `SigninWithoutSecurityCodeResponse`.
pub mod signin_without_security_code_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(string, tag = "1")]
pub access_token: ::prost::alloc::string::String,
}
}

398
src/c2se/member.rs Normal file
View File

@ -0,0 +1,398 @@
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateMemberRequest {
#[prost(string, tag = "1")]
pub site_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub member_class_id: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub member_level_id: ::prost::alloc::string::String,
#[prost(string, optional, tag = "4")]
pub referrer_member_username: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, tag = "5")]
pub username: ::prost::alloc::string::String,
#[prost(string, tag = "6")]
pub password: ::prost::alloc::string::String,
#[prost(string, tag = "7")]
pub nickname: ::prost::alloc::string::String,
#[prost(string, optional, tag = "8")]
pub mobile_phone_number: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "9")]
pub bank_account: ::core::option::Option<create_member_request::BankAccount>,
#[prost(message, optional, tag = "10")]
pub game_setting: ::core::option::Option<create_member_request::GameSetting>,
#[prost(message, optional, tag = "11")]
pub settlement_setting: ::core::option::Option<create_member_request::SettlementSetting>,
}
/// Nested message and enum types in `CreateMemberRequest`.
pub mod create_member_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BankAccount {
#[prost(string, tag = "1")]
pub bank_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub account_number: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub exchange_password: ::prost::alloc::string::String,
#[prost(string, optional, tag = "5")]
pub memo: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GameSetting {
#[prost(bool, tag = "1")]
pub can_bet_casino: bool,
#[prost(bool, tag = "2")]
pub can_bet_slot: bool,
#[prost(bool, tag = "3")]
pub can_bet_powerball: bool,
#[prost(bool, tag = "4")]
pub can_bet_powerladder: bool,
#[prost(bool, tag = "5")]
pub can_bet_eos: bool,
#[prost(bool, tag = "6")]
pub can_bet_bogglepowerball: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SettlementSetting {
#[prost(bool, tag = "1")]
pub can_exchange: bool,
#[prost(bool, tag = "2")]
pub can_first_charge_comp: bool,
#[prost(bool, tag = "3")]
pub can_per_charge_comp: bool,
#[prost(
enumeration = "crate::models::member_settlement_setting::SettlementType",
tag = "4"
)]
pub settlement_type: i32,
#[prost(
enumeration = "crate::models::member_settlement_setting::ManualPaymentType",
tag = "5"
)]
pub manual_payment_type_for_partner: i32,
#[prost(double, tag = "6")]
pub rate_casino: f64,
#[prost(double, tag = "7")]
pub rate_casino_loosing: f64,
#[prost(double, tag = "8")]
pub rate_casino_bacara: f64,
#[prost(double, tag = "9")]
pub rate_casino_roulette: f64,
#[prost(double, tag = "10")]
pub rate_casino_dragon_tiger: f64,
#[prost(double, tag = "11")]
pub rate_slot: f64,
#[prost(double, tag = "12")]
pub rate_slot_loosing: f64,
#[prost(double, tag = "13")]
pub rate_powerball_single: f64,
#[prost(double, tag = "14")]
pub rate_powerball_combo: f64,
#[prost(double, tag = "15")]
pub rate_powerladder_single: f64,
#[prost(double, tag = "16")]
pub rate_powerladder_combo: f64,
#[prost(double, tag = "17")]
pub rate_eos_single: f64,
#[prost(double, tag = "18")]
pub rate_eos_combo: f64,
#[prost(double, tag = "19")]
pub rate_bogglepowerball_single: f64,
#[prost(double, tag = "20")]
pub rate_bogglepowerball_combo: f64,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateMemberResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<create_member_response::Result>,
}
/// Nested message and enum types in `CreateMemberResponse`.
pub mod create_member_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member: ::core::option::Option<crate::models::member::MemberModel>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMembersRequest {
#[prost(message, optional, tag = "1")]
pub pagination: ::core::option::Option<crate::protobuf::pagination::Pagination>,
#[prost(message, repeated, tag = "2")]
pub sorts: ::prost::alloc::vec::Vec<crate::protobuf::pagination::Sort>,
#[prost(message, optional, tag = "3")]
pub search: ::core::option::Option<list_members_request::Search>,
}
/// Nested message and enum types in `ListMembersRequest`.
pub mod list_members_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Search {
#[prost(string, optional, tag = "1")]
pub site_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "2")]
pub member_class_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "3")]
pub member_level_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "4")]
pub parent_member_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "5")]
pub username: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, repeated, tag = "6")]
pub usernames: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, optional, tag = "7")]
pub username_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "8")]
pub nickname: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, repeated, tag = "9")]
pub nicknames: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, optional, tag = "10")]
pub nickname_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "11")]
pub mobile_phone_number_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "12")]
pub last_signined_ip: ::core::option::Option<::prost::alloc::string::String>,
#[prost(
enumeration = "crate::models::member::MemberState",
optional,
tag = "13"
)]
pub state: ::core::option::Option<i32>,
#[prost(uint64, optional, tag = "14")]
pub deleted_at: ::core::option::Option<u64>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMembersResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<list_members_response::Result>,
}
/// Nested message and enum types in `ListMembersResponse`.
pub mod list_members_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(uint64, tag = "1")]
pub total_count: u64,
#[prost(message, repeated, tag = "2")]
pub members: ::prost::alloc::vec::Vec<crate::models::member::MemberModel>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberRequest {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<get_member_response::Result>,
}
/// Nested message and enum types in `GetMemberResponse`.
pub mod get_member_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member: ::core::option::Option<crate::models::member::MemberModel>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberByUsernameRequest {
#[prost(string, tag = "1")]
pub username: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberByUsernameResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<get_member_by_username_response::Result>,
}
/// Nested message and enum types in `GetMemberByUsernameResponse`.
pub mod get_member_by_username_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member: ::core::option::Option<crate::models::member::MemberModel>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberRequest {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, optional, tag = "2")]
pub site_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "3")]
pub member_level_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "4")]
pub mobile_phone_number: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "5")]
pub bank_account: ::core::option::Option<update_member_request::BankAccount>,
#[prost(message, optional, tag = "6")]
pub game_setting: ::core::option::Option<update_member_request::GameSetting>,
#[prost(message, optional, tag = "7")]
pub settlement_setting: ::core::option::Option<update_member_request::SettlementSetting>,
}
/// Nested message and enum types in `UpdateMemberRequest`.
pub mod update_member_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BankAccount {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub bank_id: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub account_number: ::prost::alloc::string::String,
#[prost(string, optional, tag = "5")]
pub memo: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GameSetting {
#[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 SettlementSetting {
#[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 UpdateMemberResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<update_member_response::Result>,
}
/// Nested message and enum types in `UpdateMemberResponse`.
pub mod update_member_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member: ::core::option::Option<crate::models::member::MemberModel>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberForPasswordRequest {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub password: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberForPasswordResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<update_member_for_password_response::Result>,
}
/// Nested message and enum types in `UpdateMemberForPasswordResponse`.
pub mod update_member_for_password_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberForStateRequest {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(enumeration = "crate::models::member::MemberState", tag = "2")]
pub state: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberForStateResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<update_member_for_state_response::Result>,
}
/// Nested message and enum types in `UpdateMemberForStateResponse`.
pub mod update_member_for_state_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member: ::core::option::Option<crate::models::member::MemberModel>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteMemberRequest {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteMemberResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<delete_member_response::Result>,
}
/// Nested message and enum types in `DeleteMemberResponse`.
pub mod delete_member_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {}
}

117
src/c2se/member_balance.rs Normal file
View File

@ -0,0 +1,117 @@
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateMemberBalanceRequest {
#[prost(string, tag = "1")]
pub member_id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateMemberBalanceResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<create_member_balance_response::Result>,
}
/// Nested message and enum types in `CreateMemberBalanceResponse`.
pub mod create_member_balance_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_balance: ::core::option::Option<crate::models::member_balance::MemberBalance>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMemberBalancesRequest {
#[prost(message, optional, tag = "1")]
pub pagination: ::core::option::Option<crate::protobuf::pagination::Pagination>,
#[prost(message, repeated, tag = "2")]
pub sorts: ::prost::alloc::vec::Vec<crate::protobuf::pagination::Sort>,
#[prost(message, optional, tag = "3")]
pub search: ::core::option::Option<list_member_balances_request::Search>,
}
/// Nested message and enum types in `ListMemberBalancesRequest`.
pub mod list_member_balances_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 ListMemberBalancesResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<list_member_balances_response::Result>,
}
/// Nested message and enum types in `ListMemberBalancesResponse`.
pub mod list_member_balances_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(uint64, tag = "1")]
pub total_count: u64,
#[prost(message, repeated, tag = "2")]
pub member_balances: ::prost::alloc::vec::Vec<crate::models::member_balance::MemberBalance>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberBalanceRequest {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberBalanceResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<get_member_balance_response::Result>,
}
/// Nested message and enum types in `GetMemberBalanceResponse`.
pub mod get_member_balance_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_balance: ::core::option::Option<crate::models::member_balance::MemberBalance>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberBalanceRequest {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(double, tag = "2")]
pub balance: f64,
#[prost(double, tag = "3")]
pub balance_bota: f64,
#[prost(double, tag = "4")]
pub balance_sum: f64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberBalanceResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<update_member_balance_response::Result>,
}
/// Nested message and enum types in `UpdateMemberBalanceResponse`.
pub mod update_member_balance_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_balance: ::core::option::Option<crate::models::member_balance::MemberBalance>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteMemberBalanceRequest {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteMemberBalanceResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<delete_member_balance_response::Result>,
}
/// Nested message and enum types in `DeleteMemberBalanceResponse`.
pub mod delete_member_balance_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {}
}

View File

@ -0,0 +1,161 @@
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateMemberBankAccountRequest {
#[prost(string, tag = "1")]
pub member_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub bank_id: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub account_number: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub exchange_password: ::prost::alloc::string::String,
#[prost(string, optional, tag = "6")]
pub memo: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateMemberBankAccountResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<create_member_bank_account_response::Result>,
}
/// Nested message and enum types in `CreateMemberBankAccountResponse`.
pub mod create_member_bank_account_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_bank_account:
::core::option::Option<crate::models::member_bank_account::MemberBankAccount>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMemberBankAccountsRequest {
#[prost(message, optional, tag = "1")]
pub pagination: ::core::option::Option<crate::protobuf::pagination::Pagination>,
#[prost(message, repeated, tag = "2")]
pub sorts: ::prost::alloc::vec::Vec<crate::protobuf::pagination::Sort>,
#[prost(message, optional, tag = "3")]
pub search: ::core::option::Option<list_member_bank_accounts_request::Search>,
}
/// Nested message and enum types in `ListMemberBankAccountsRequest`.
pub mod list_member_bank_accounts_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Search {
#[prost(string, optional, tag = "1")]
pub member_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "2")]
pub bank_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "3")]
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(string, optional, tag = "5")]
pub memo_like: ::core::option::Option<::prost::alloc::string::String>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMemberBankAccountsResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<list_member_bank_accounts_response::Result>,
}
/// Nested message and enum types in `ListMemberBankAccountsResponse`.
pub mod list_member_bank_accounts_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(uint64, tag = "1")]
pub total_count: u64,
#[prost(message, repeated, tag = "2")]
pub member_bank_accounts:
::prost::alloc::vec::Vec<crate::models::member_bank_account::MemberBankAccount>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberBankAccountRequest {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberBankAccountResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<get_member_bank_account_response::Result>,
}
/// Nested message and enum types in `GetMemberBankAccountResponse`.
pub mod get_member_bank_account_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_bank_account:
::core::option::Option<crate::models::member_bank_account::MemberBankAccount>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberBankAccountRequest {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub bank_id: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub account_number: ::prost::alloc::string::String,
#[prost(string, optional, tag = "5")]
pub memo: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberBankAccountResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<update_member_bank_account_response::Result>,
}
/// Nested message and enum types in `UpdateMemberBankAccountResponse`.
pub mod update_member_bank_account_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_bank_account:
::core::option::Option<crate::models::member_bank_account::MemberBankAccount>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberBankAccountForExchangePasswordRequest {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub exchange_password: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberBankAccountForExchangePasswordResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result:
::core::option::Option<update_member_bank_account_for_exchange_password_response::Result>,
}
/// Nested message and enum types in `UpdateMemberBankAccountForExchangePasswordResponse`.
pub mod update_member_bank_account_for_exchange_password_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteMemberBankAccountRequest {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteMemberBankAccountResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<delete_member_bank_account_response::Result>,
}
/// Nested message and enum types in `DeleteMemberBankAccountResponse`.
pub mod delete_member_bank_account_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {}
}

View File

@ -0,0 +1,163 @@
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateMemberBankDepositRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(double, tag = "2")]
pub amount: f64,
#[prost(string, optional, tag = "3")]
pub memo: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateMemberBankDepositResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<create_member_bank_deposit_response::Result>,
}
/// Nested message and enum types in `CreateMemberBankDepositResponse`.
pub mod create_member_bank_deposit_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_bank_deposit:
::core::option::Option<crate::models::member_bank_deposit::MemberBankDepositModel>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMemberBankDepositsRequest {
#[prost(message, optional, tag = "1")]
pub pagination: ::core::option::Option<crate::protobuf::pagination::Pagination>,
#[prost(message, repeated, tag = "2")]
pub sorts: ::prost::alloc::vec::Vec<crate::protobuf::pagination::Sort>,
#[prost(message, optional, tag = "3")]
pub search: ::core::option::Option<list_member_bank_deposits_request::Search>,
}
/// Nested message and enum types in `ListMemberBankDepositsRequest`.
pub mod list_member_bank_deposits_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Search {
#[prost(string, optional, tag = "1")]
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(double, optional, tag = "3")]
pub amount: ::core::option::Option<f64>,
#[prost(string, optional, tag = "4")]
pub memo_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(
enumeration = "crate::models::member_bank_deposit::MemberBankDepositState",
optional,
tag = "5"
)]
pub state: ::core::option::Option<i32>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMemberBankDepositsResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<list_member_bank_deposits_response::Result>,
}
/// Nested message and enum types in `ListMemberBankDepositsResponse`.
pub mod list_member_bank_deposits_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(uint64, tag = "1")]
pub total_count: u64,
#[prost(message, repeated, tag = "2")]
pub member_bank_deposits:
::prost::alloc::vec::Vec<crate::models::member_bank_deposit::MemberBankDepositModel>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberBankDepositRequest {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberBankDepositResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<get_member_bank_deposit_response::Result>,
}
/// Nested message and enum types in `GetMemberBankDepositResponse`.
pub mod get_member_bank_deposit_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_bank_deposit:
::core::option::Option<crate::models::member_bank_deposit::MemberBankDepositModel>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberBankDepositRequest {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub name: ::prost::alloc::string::String,
#[prost(double, tag = "5")]
pub amount: f64,
#[prost(string, optional, tag = "7")]
pub memo: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberBankDepositResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<update_member_bank_deposit_response::Result>,
}
/// Nested message and enum types in `UpdateMemberBankDepositResponse`.
pub mod update_member_bank_deposit_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_bank_deposit:
::core::option::Option<crate::models::member_bank_deposit::MemberBankDepositModel>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberBankDepositForStateRequest {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(
enumeration = "crate::models::member_bank_deposit::MemberBankDepositState",
tag = "2"
)]
pub state: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberBankDepositForStateResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<update_member_bank_deposit_for_state_response::Result>,
}
/// Nested message and enum types in `UpdateMemberBankDepositForStateResponse`.
pub mod update_member_bank_deposit_for_state_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_bank_deposit:
::core::option::Option<crate::models::member_bank_deposit::MemberBankDepositModel>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteMemberBankDepositRequest {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteMemberBankDepositResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<delete_member_bank_deposit_response::Result>,
}
/// Nested message and enum types in `DeleteMemberBankDepositResponse`.
pub mod delete_member_bank_deposit_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {}
}

View File

@ -0,0 +1,179 @@
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateMemberBankWithdrawRequest {
#[prost(string, tag = "1")]
pub bank_name: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub account_number: ::prost::alloc::string::String,
#[prost(double, tag = "4")]
pub amount: f64,
#[prost(string, tag = "5")]
pub password: ::prost::alloc::string::String,
#[prost(string, optional, tag = "6")]
pub memo: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateMemberBankWithdrawResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<create_member_bank_withdraw_response::Result>,
}
/// Nested message and enum types in `CreateMemberBankWithdrawResponse`.
pub mod create_member_bank_withdraw_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_bank_withdraw:
::core::option::Option<crate::models::member_bank_withdraw::MemberBankWithdrawModel>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMemberBankWithdrawsRequest {
#[prost(message, optional, tag = "1")]
pub pagination: ::core::option::Option<crate::protobuf::pagination::Pagination>,
#[prost(message, repeated, tag = "2")]
pub sorts: ::prost::alloc::vec::Vec<crate::protobuf::pagination::Sort>,
#[prost(message, optional, tag = "3")]
pub search: ::core::option::Option<list_member_bank_withdraws_request::Search>,
}
/// Nested message and enum types in `ListMemberBankWithdrawsRequest`.
pub mod list_member_bank_withdraws_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Search {
#[prost(string, optional, tag = "1")]
pub member_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "2")]
pub bank_name_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "3")]
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(double, optional, tag = "5")]
pub amount: ::core::option::Option<f64>,
#[prost(string, optional, tag = "6")]
pub memo_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(
enumeration = "crate::models::member_bank_withdraw::MemberBankWithdrawState",
optional,
tag = "7"
)]
pub state: ::core::option::Option<i32>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMemberBankWithdrawsResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<list_member_bank_withdraws_response::Result>,
}
/// Nested message and enum types in `ListMemberBankWithdrawsResponse`.
pub mod list_member_bank_withdraws_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(uint64, tag = "1")]
pub total_count: u64,
#[prost(message, repeated, tag = "2")]
pub member_bank_withdraws:
::prost::alloc::vec::Vec<crate::models::member_bank_withdraw::MemberBankWithdrawModel>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberBankWithdrawRequest {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberBankWithdrawResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<get_member_bank_withdraw_response::Result>,
}
/// Nested message and enum types in `GetMemberBankWithdrawResponse`.
pub mod get_member_bank_withdraw_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_bank_withdraw:
::core::option::Option<crate::models::member_bank_withdraw::MemberBankWithdrawModel>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberBankWithdrawRequest {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub bank_name: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub account_number: ::prost::alloc::string::String,
#[prost(double, tag = "5")]
pub amount: f64,
#[prost(string, tag = "6")]
pub password: ::prost::alloc::string::String,
#[prost(string, optional, tag = "7")]
pub memo: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberBankWithdrawResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<update_member_bank_withdraw_response::Result>,
}
/// Nested message and enum types in `UpdateMemberBankWithdrawResponse`.
pub mod update_member_bank_withdraw_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_bank_withdraw:
::core::option::Option<crate::models::member_bank_withdraw::MemberBankWithdrawModel>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberBankWithdrawForStateRequest {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(
enumeration = "crate::models::member_bank_withdraw::MemberBankWithdrawState",
tag = "2"
)]
pub state: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberBankWithdrawForStateResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<update_member_bank_withdraw_for_state_response::Result>,
}
/// Nested message and enum types in `UpdateMemberBankWithdrawForStateResponse`.
pub mod update_member_bank_withdraw_for_state_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_bank_withdraw:
::core::option::Option<crate::models::member_bank_withdraw::MemberBankWithdrawModel>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteMemberBankWithdrawRequest {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteMemberBankWithdrawResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<delete_member_bank_withdraw_response::Result>,
}
/// Nested message and enum types in `DeleteMemberBankWithdrawResponse`.
pub mod delete_member_bank_withdraw_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {}
}

123
src/c2se/member_class.rs Normal file
View File

@ -0,0 +1,123 @@
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateMemberClassRequest {
#[prost(string, optional, tag = "1")]
pub parent_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
#[prost(bool, tag = "3")]
pub show: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateMemberClassResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<create_member_class_response::Result>,
}
/// Nested message and enum types in `CreateMemberClassResponse`.
pub mod create_member_class_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_class: ::core::option::Option<crate::models::member_class::MemberClass>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMemberClassesRequest {
#[prost(message, optional, tag = "1")]
pub pagination: ::core::option::Option<crate::protobuf::pagination::Pagination>,
#[prost(message, repeated, tag = "2")]
pub sorts: ::prost::alloc::vec::Vec<crate::protobuf::pagination::Sort>,
#[prost(message, optional, tag = "3")]
pub search: ::core::option::Option<list_member_classes_request::Search>,
}
/// Nested message and enum types in `ListMemberClassesRequest`.
pub mod list_member_classes_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Search {
#[prost(string, optional, tag = "1")]
pub name_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(bool, optional, tag = "2")]
pub show: ::core::option::Option<bool>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMemberClassesResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<list_member_classes_response::Result>,
}
/// Nested message and enum types in `ListMemberClassesResponse`.
pub mod list_member_classes_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(uint64, tag = "1")]
pub total_count: u64,
#[prost(message, repeated, tag = "2")]
pub member_classes: ::prost::alloc::vec::Vec<crate::models::member_class::MemberClass>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberClassRequest {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberClassResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<get_member_class_response::Result>,
}
/// Nested message and enum types in `GetMemberClassResponse`.
pub mod get_member_class_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_class: ::core::option::Option<crate::models::member_class::MemberClass>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberClassRequest {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, optional, tag = "2")]
pub parent_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, tag = "3")]
pub name: ::prost::alloc::string::String,
#[prost(bool, tag = "4")]
pub show: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberClassResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<update_member_class_response::Result>,
}
/// Nested message and enum types in `UpdateMemberClassResponse`.
pub mod update_member_class_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_class: ::core::option::Option<crate::models::member_class::MemberClass>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteMemberClassRequest {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteMemberClassResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<delete_member_class_response::Result>,
}
/// Nested message and enum types in `DeleteMemberClassResponse`.
pub mod delete_member_class_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {}
}

View File

@ -0,0 +1,139 @@
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateMemberGameSettingRequest {
#[prost(string, tag = "1")]
pub member_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 CreateMemberGameSettingResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<create_member_game_setting_response::Result>,
}
/// 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<crate::models::member_game_setting::MemberGameSetting>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMemberGameSettingsRequest {
#[prost(message, optional, tag = "1")]
pub pagination: ::core::option::Option<crate::protobuf::pagination::Pagination>,
#[prost(message, repeated, tag = "2")]
pub sorts: ::prost::alloc::vec::Vec<crate::protobuf::pagination::Sort>,
#[prost(message, optional, tag = "3")]
pub search: ::core::option::Option<list_member_game_settings_request::Search>,
}
/// 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<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<list_member_game_settings_response::Result>,
}
/// Nested message and enum types in `ListMemberGameSettingsResponse`.
pub mod list_member_game_settings_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(uint64, tag = "1")]
pub total_count: u64,
#[prost(message, repeated, tag = "2")]
pub member_game_settings:
::prost::alloc::vec::Vec<crate::models::member_game_setting::MemberGameSetting>,
}
}
#[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<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<get_member_game_setting_response::Result>,
}
/// 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<crate::models::member_game_setting::MemberGameSetting>,
}
}
#[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<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<update_member_game_setting_response::Result>,
}
/// 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<crate::models::member_game_setting::MemberGameSetting>,
}
}
#[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<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<delete_member_game_setting_response::Result>,
}
/// Nested message and enum types in `DeleteMemberGameSettingResponse`.
pub mod delete_member_game_setting_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {}
}

123
src/c2se/member_level.rs Normal file
View File

@ -0,0 +1,123 @@
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateMemberLevelRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(bool, tag = "2")]
pub show: bool,
#[prost(uint32, tag = "3")]
pub sort_order: u32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateMemberLevelResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<create_member_level_response::Result>,
}
/// Nested message and enum types in `CreateMemberLevelResponse`.
pub mod create_member_level_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_level: ::core::option::Option<crate::models::member_level::MemberLevel>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMemberLevelsRequest {
#[prost(message, optional, tag = "1")]
pub pagination: ::core::option::Option<crate::protobuf::pagination::Pagination>,
#[prost(message, repeated, tag = "2")]
pub sorts: ::prost::alloc::vec::Vec<crate::protobuf::pagination::Sort>,
#[prost(message, optional, tag = "3")]
pub search: ::core::option::Option<list_member_levels_request::Search>,
}
/// Nested message and enum types in `ListMemberLevelsRequest`.
pub mod list_member_levels_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Search {
#[prost(string, optional, tag = "1")]
pub name_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(bool, optional, tag = "2")]
pub show: ::core::option::Option<bool>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMemberLevelsResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<list_member_levels_response::Result>,
}
/// Nested message and enum types in `ListMemberLevelsResponse`.
pub mod list_member_levels_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(uint64, tag = "1")]
pub total_count: u64,
#[prost(message, repeated, tag = "2")]
pub member_levels: ::prost::alloc::vec::Vec<crate::models::member_level::MemberLevel>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberLevelRequest {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberLevelResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<get_member_level_response::Result>,
}
/// Nested message and enum types in `GetMemberLevelResponse`.
pub mod get_member_level_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_level: ::core::option::Option<crate::models::member_level::MemberLevel>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberLevelRequest {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
#[prost(bool, tag = "3")]
pub show: bool,
#[prost(uint32, tag = "4")]
pub sort_order: u32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberLevelResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<update_member_level_response::Result>,
}
/// Nested message and enum types in `UpdateMemberLevelResponse`.
pub mod update_member_level_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_level: ::core::option::Option<crate::models::member_level::MemberLevel>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteMemberLevelRequest {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteMemberLevelResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<delete_member_level_response::Result>,
}
/// Nested message and enum types in `DeleteMemberLevelResponse`.
pub mod delete_member_level_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {}
}

182
src/c2se/member_referrer.rs Normal file
View File

@ -0,0 +1,182 @@
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateMemberReferrerRequest {
#[prost(string, tag = "1")]
pub member_id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateMemberReferrerResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<create_member_referrer_response::Result>,
}
/// Nested message and enum types in `CreateMemberReferrerResponse`.
pub mod create_member_referrer_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_referrer:
::core::option::Option<crate::models::member_referrer::MemberReferrerModel>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateMemberReferrersRequest {
#[prost(string, repeated, tag = "1")]
pub member_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateMemberReferrersResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<create_member_referrers_response::Result>,
}
/// Nested message and enum types in `CreateMemberReferrersResponse`.
pub mod create_member_referrers_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, repeated, tag = "1")]
pub member_referrers:
::prost::alloc::vec::Vec<crate::models::member_referrer::MemberReferrerModel>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMemberReferrersRequest {
#[prost(message, optional, tag = "1")]
pub pagination: ::core::option::Option<crate::protobuf::pagination::Pagination>,
#[prost(message, repeated, tag = "2")]
pub sorts: ::prost::alloc::vec::Vec<crate::protobuf::pagination::Sort>,
#[prost(message, optional, tag = "3")]
pub search: ::core::option::Option<list_member_referrers_request::Search>,
}
/// Nested message and enum types in `ListMemberReferrersRequest`.
pub mod list_member_referrers_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Search {
#[prost(string, optional, tag = "1")]
pub member_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(bool, optional, tag = "2")]
pub can_use: ::core::option::Option<bool>,
#[prost(string, optional, tag = "3")]
pub memo_like: ::core::option::Option<::prost::alloc::string::String>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMemberReferrersResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<list_member_referrers_response::Result>,
}
/// Nested message and enum types in `ListMemberReferrersResponse`.
pub mod list_member_referrers_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(uint64, tag = "1")]
pub total_count: u64,
#[prost(message, repeated, tag = "2")]
pub member_referrers:
::prost::alloc::vec::Vec<crate::models::member_referrer::MemberReferrerModel>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberReferrerRequest {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberReferrerResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<get_member_referrer_response::Result>,
}
/// Nested message and enum types in `GetMemberReferrerResponse`.
pub mod get_member_referrer_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_referrer:
::core::option::Option<crate::models::member_referrer::MemberReferrerModel>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberReferrerByCodeRequest {
#[prost(string, tag = "1")]
pub code: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberReferrerByCodeResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<get_member_referrer_by_code_response::Result>,
}
/// Nested message and enum types in `GetMemberReferrerByCodeResponse`.
pub mod get_member_referrer_by_code_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_referrer:
::core::option::Option<crate::models::member_referrer::MemberReferrerModel>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberReferrerRequest {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(bool, tag = "2")]
pub can_use: bool,
#[prost(string, optional, tag = "3")]
pub memo: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberReferrerResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<update_member_referrer_response::Result>,
}
/// Nested message and enum types in `UpdateMemberReferrerResponse`.
pub mod update_member_referrer_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_referrer:
::core::option::Option<crate::models::member_referrer::MemberReferrerModel>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteMemberReferrerRequest {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteMemberReferrerResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<delete_member_referrer_response::Result>,
}
/// Nested message and enum types in `DeleteMemberReferrerResponse`.
pub mod delete_member_referrer_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteMemberReferrersRequest {
#[prost(string, repeated, tag = "1")]
pub ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteMemberReferrersResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<delete_member_referrers_response::Result>,
}
/// Nested message and enum types in `DeleteMemberReferrersResponse`.
pub mod delete_member_referrers_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {}
}

View File

@ -0,0 +1,207 @@
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateMemberSettlementSettingRequest {
#[prost(string, tag = "1")]
pub member_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 CreateMemberSettlementSettingResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<create_member_settlement_setting_response::Result>,
}
/// 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<crate::models::member_settlement_setting::MemberSettlementSetting>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMemberSettlementSettingsRequest {
#[prost(message, optional, tag = "1")]
pub pagination: ::core::option::Option<crate::protobuf::pagination::Pagination>,
#[prost(message, repeated, tag = "2")]
pub sorts: ::prost::alloc::vec::Vec<crate::protobuf::pagination::Sort>,
#[prost(message, optional, tag = "3")]
pub search: ::core::option::Option<list_member_settlement_settings_request::Search>,
}
/// 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<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<list_member_settlement_settings_response::Result>,
}
/// Nested message and enum types in `ListMemberSettlementSettingsResponse`.
pub mod list_member_settlement_settings_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(uint64, tag = "1")]
pub total_count: u64,
#[prost(message, repeated, tag = "2")]
pub member_settlement_settings:
::prost::alloc::vec::Vec<crate::models::member_settlement_setting::MemberSettlementSetting>,
}
}
#[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<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<get_member_settlement_setting_response::Result>,
}
/// 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<crate::models::member_settlement_setting::MemberSettlementSetting>,
}
}
#[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<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<update_member_settlement_setting_response::Result>,
}
/// 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<crate::models::member_settlement_setting::MemberSettlementSetting>,
}
}
#[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<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<delete_member_settlement_setting_response::Result>,
}
/// Nested message and enum types in `DeleteMemberSettlementSettingResponse`.
pub mod delete_member_settlement_setting_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {}
}

17
src/c2se/mod.rs Normal file
View File

@ -0,0 +1,17 @@
pub mod api;
pub mod backend;
pub mod bank;
pub mod core;
pub mod frontend;
pub mod identity;
pub mod member;
pub mod member_balance;
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;

147
src/c2se/site.rs Normal file
View File

@ -0,0 +1,147 @@
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateSiteRequest {
#[prost(string, tag = "1")]
pub url: ::prost::alloc::string::String,
#[prost(string, optional, tag = "2")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "3")]
pub path: ::core::option::Option<::prost::alloc::string::String>,
#[prost(bool, tag = "4")]
pub show: bool,
#[prost(bool, tag = "5")]
pub can_use: bool,
#[prost(string, optional, tag = "6")]
pub memo: ::core::option::Option<::prost::alloc::string::String>,
#[prost(uint64, optional, tag = "7")]
pub expires_at: ::core::option::Option<u64>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateSiteResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<create_site_response::Result>,
}
/// Nested message and enum types in `CreateSiteResponse`.
pub mod create_site_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub site: ::core::option::Option<crate::models::site::Site>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListSitesRequest {
#[prost(message, optional, tag = "1")]
pub pagination: ::core::option::Option<crate::protobuf::pagination::Pagination>,
#[prost(message, repeated, tag = "2")]
pub sorts: ::prost::alloc::vec::Vec<crate::protobuf::pagination::Sort>,
#[prost(message, optional, tag = "3")]
pub search: ::core::option::Option<list_sites_request::Search>,
}
/// Nested message and enum types in `ListSitesRequest`.
pub mod list_sites_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Search {
#[prost(string, optional, tag = "1")]
pub url_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "2")]
pub name_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "3")]
pub path_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(bool, optional, tag = "4")]
pub show: ::core::option::Option<bool>,
#[prost(bool, optional, tag = "5")]
pub can_use: ::core::option::Option<bool>,
#[prost(string, optional, tag = "6")]
pub memo_like: ::core::option::Option<::prost::alloc::string::String>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListSitesResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<list_sites_response::Result>,
}
/// Nested message and enum types in `ListSitesResponse`.
pub mod list_sites_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(uint64, tag = "1")]
pub total_count: u64,
#[prost(message, repeated, tag = "2")]
pub sites: ::prost::alloc::vec::Vec<crate::models::site::Site>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSiteRequest {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSiteResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<get_site_response::Result>,
}
/// Nested message and enum types in `GetSiteResponse`.
pub mod get_site_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub site: ::core::option::Option<crate::models::site::Site>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateSiteRequest {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub url: ::prost::alloc::string::String,
#[prost(string, optional, tag = "3")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "4")]
pub path: ::core::option::Option<::prost::alloc::string::String>,
#[prost(bool, tag = "5")]
pub show: bool,
#[prost(bool, tag = "6")]
pub can_use: bool,
#[prost(string, optional, tag = "7")]
pub memo: ::core::option::Option<::prost::alloc::string::String>,
#[prost(uint64, optional, tag = "8")]
pub expires_at: ::core::option::Option<u64>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateSiteResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<update_site_response::Result>,
}
/// Nested message and enum types in `UpdateSiteResponse`.
pub mod update_site_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub site: ::core::option::Option<crate::models::site::Site>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteSiteRequest {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteSiteResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<delete_site_response::Result>,
}
/// Nested message and enum types in `DeleteSiteResponse`.
pub mod delete_site_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {}
}

11
src/lib.rs Normal file
View File

@ -0,0 +1,11 @@
//!
//!
#![deny(missing_docs)]
#![deny(missing_debug_implementations)]
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
pub mod c2se;
pub mod models;
pub mod protobuf;
pub mod ss;

104
src/models/api/betting.rs Normal file
View File

@ -0,0 +1,104 @@
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BettingHistory {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(uint64, tag = "2")]
pub vendor_id: u64,
#[prost(string, tag = "3")]
pub vendor_name: ::prost::alloc::string::String,
#[prost(uint64, tag = "4")]
pub game_id: u64,
#[prost(string, tag = "5")]
pub game_name: ::prost::alloc::string::String,
#[prost(string, tag = "6")]
pub game_category: ::prost::alloc::string::String,
#[prost(string, tag = "7")]
pub game_type: ::prost::alloc::string::String,
#[prost(string, tag = "8")]
pub currency: ::prost::alloc::string::String,
#[prost(double, tag = "9")]
pub cash: f64,
#[prost(double, tag = "10")]
pub before_cash: f64,
#[prost(double, tag = "11")]
pub after_cash: f64,
#[prost(string, optional, tag = "12")]
pub group_key: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "13")]
pub detail: ::core::option::Option<::prost::alloc::string::String>,
#[prost(bool, tag = "14")]
pub is_bonus: bool,
#[prost(bool, tag = "15")]
pub is_promo: bool,
#[prost(bool, tag = "16")]
pub is_jackpot: bool,
#[prost(string, tag = "17")]
pub site_username: ::prost::alloc::string::String,
#[prost(string, tag = "18")]
pub key: ::prost::alloc::string::String,
#[prost(string, tag = "19")]
pub ref_id: ::prost::alloc::string::String,
#[prost(string, tag = "20")]
pub o_ref_id: ::prost::alloc::string::String,
#[prost(string, tag = "21")]
pub betting_type: ::prost::alloc::string::String,
#[prost(string, tag = "22")]
pub category: ::prost::alloc::string::String,
#[prost(uint64, tag = "23")]
pub created_at: u64,
#[prost(uint64, tag = "24")]
pub utc_created_at: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BettingHistoryModel {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(uint64, tag = "2")]
pub vendor_id: u64,
#[prost(string, tag = "3")]
pub vendor_name: ::prost::alloc::string::String,
#[prost(uint64, tag = "4")]
pub game_id: u64,
#[prost(string, tag = "5")]
pub game_name: ::prost::alloc::string::String,
#[prost(string, tag = "6")]
pub game_category: ::prost::alloc::string::String,
#[prost(string, tag = "7")]
pub game_type: ::prost::alloc::string::String,
#[prost(string, tag = "8")]
pub currency: ::prost::alloc::string::String,
#[prost(double, tag = "9")]
pub cash: f64,
#[prost(double, tag = "10")]
pub before_cash: f64,
#[prost(double, tag = "11")]
pub after_cash: f64,
#[prost(string, optional, tag = "12")]
pub group_key: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "13")]
pub detail: ::core::option::Option<::prost::alloc::string::String>,
#[prost(bool, tag = "14")]
pub is_bonus: bool,
#[prost(bool, tag = "15")]
pub is_promo: bool,
#[prost(bool, tag = "16")]
pub is_jackpot: bool,
#[prost(string, tag = "17")]
pub site_username: ::prost::alloc::string::String,
#[prost(string, tag = "18")]
pub key: ::prost::alloc::string::String,
#[prost(string, tag = "19")]
pub ref_id: ::prost::alloc::string::String,
#[prost(string, tag = "20")]
pub o_ref_id: ::prost::alloc::string::String,
#[prost(string, tag = "21")]
pub betting_type: ::prost::alloc::string::String,
#[prost(string, tag = "22")]
pub category: ::prost::alloc::string::String,
#[prost(uint64, tag = "23")]
pub created_at: u64,
#[prost(uint64, tag = "24")]
pub utc_created_at: u64,
#[prost(message, optional, tag = "25")]
pub member: ::core::option::Option<super::super::member::MemberModel>,
}

23
src/models/api/game.rs Normal file
View File

@ -0,0 +1,23 @@
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Game {
#[prost(uint64, tag = "1")]
pub id: u64,
#[prost(uint64, tag = "2")]
pub parent_id: u64,
#[prost(string, tag = "3")]
pub key: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub names: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub platform: ::prost::alloc::string::String,
#[prost(string, tag = "6")]
pub category: ::prost::alloc::string::String,
#[prost(string, tag = "7")]
pub game_type: ::prost::alloc::string::String,
#[prost(string, optional, tag = "8")]
pub image: ::core::option::Option<::prost::alloc::string::String>,
#[prost(uint64, tag = "9")]
pub created_at: u64,
#[prost(uint64, tag = "10")]
pub updated_at: u64,
}

3
src/models/api/mod.rs Normal file
View File

@ -0,0 +1,3 @@
pub mod betting;
pub mod game;
pub mod vendor;

27
src/models/api/vendor.rs Normal file
View File

@ -0,0 +1,27 @@
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Vendor {
#[prost(uint64, tag = "1")]
pub id: u64,
#[prost(uint64, tag = "2")]
pub company_id: u64,
#[prost(uint64, tag = "3")]
pub vendor_id: u64,
#[prost(string, tag = "4")]
pub key: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "6")]
pub category: ::prost::alloc::string::String,
#[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")]
pub bet_count: u64,
#[prost(uint64, tag = "11")]
pub created_at: u64,
#[prost(uint64, tag = "12")]
pub updated_at: u64,
}

19
src/models/bank.rs Normal file
View File

@ -0,0 +1,19 @@
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Bank {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
#[prost(uint32, tag = "3")]
pub sort_order: u32,
#[prost(bool, tag = "4")]
pub show: bool,
#[prost(bool, tag = "5")]
pub can_use: bool,
#[prost(string, optional, tag = "6")]
pub memo: ::core::option::Option<::prost::alloc::string::String>,
#[prost(uint64, tag = "7")]
pub created_at: u64,
#[prost(uint64, tag = "8")]
pub updated_at: u64,
}

1
src/models/core/mod.rs Normal file
View File

@ -0,0 +1 @@
pub mod network;

View File

@ -0,0 +1,9 @@
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Client {
#[prost(string, tag="1")]
pub client_ip: ::prost::alloc::string::String,
#[prost(string, optional, tag="2")]
pub site_url: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag="3")]
pub access_token: ::core::option::Option<::prost::alloc::string::String>,
}

92
src/models/member.rs Normal file
View File

@ -0,0 +1,92 @@
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Member {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub site_id: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub member_class_id: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub member_level_id: ::prost::alloc::string::String,
#[prost(string, optional, tag = "5")]
pub parent_member_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(uint64, tag = "6")]
pub child_member_count: u64,
#[prost(string, tag = "7")]
pub username: ::prost::alloc::string::String,
#[prost(string, tag = "8")]
pub nickname: ::prost::alloc::string::String,
#[prost(string, optional, tag = "9")]
pub mobile_phone_number: ::core::option::Option<::prost::alloc::string::String>,
#[prost(enumeration = "MemberState", tag = "10")]
pub state: i32,
#[prost(uint64, optional, tag = "11")]
pub state_changed_at: ::core::option::Option<u64>,
#[prost(string, optional, tag = "12")]
pub last_signined_ip: ::core::option::Option<::prost::alloc::string::String>,
#[prost(uint64, optional, tag = "13")]
pub last_signined_at: ::core::option::Option<u64>,
#[prost(uint64, tag = "14")]
pub created_at: u64,
#[prost(uint64, tag = "15")]
pub updated_at: u64,
#[prost(uint64, optional, tag = "16")]
pub deleted_at: ::core::option::Option<u64>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MemberModel {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub site: ::core::option::Option<super::site::Site>,
#[prost(message, optional, tag = "3")]
pub member_class: ::core::option::Option<super::member_class::MemberClass>,
#[prost(message, optional, tag = "4")]
pub member_level: ::core::option::Option<super::member_level::MemberLevel>,
#[prost(message, optional, tag = "5")]
pub bank_account: ::core::option::Option<super::member_bank_account::MemberBankAccountModel>,
#[prost(message, optional, boxed, tag = "6")]
pub parent_member: ::core::option::Option<::prost::alloc::boxed::Box<MemberModel>>,
#[prost(uint64, tag = "7")]
pub child_member_count: u64,
#[prost(uint64, repeated, tag = "8")]
pub children_count: ::prost::alloc::vec::Vec<u64>,
#[prost(string, tag = "9")]
pub username: ::prost::alloc::string::String,
#[prost(string, tag = "10")]
pub nickname: ::prost::alloc::string::String,
#[prost(string, optional, tag = "11")]
pub mobile_phone_number: ::core::option::Option<::prost::alloc::string::String>,
#[prost(enumeration = "MemberState", tag = "12")]
pub state: i32,
#[prost(uint64, optional, tag = "13")]
pub state_changed_at: ::core::option::Option<u64>,
#[prost(message, optional, tag = "14")]
pub member_game_setting: ::core::option::Option<super::member_game_setting::MemberGameSetting>,
#[prost(message, optional, tag = "15")]
pub member_settlement_setting:
::core::option::Option<super::member_settlement_setting::MemberSettlementSetting>,
#[prost(message, optional, tag = "16")]
pub member_balance: ::core::option::Option<super::member_balance::MemberBalance>,
#[prost(string, optional, tag = "17")]
pub last_signined_ip: ::core::option::Option<::prost::alloc::string::String>,
#[prost(uint64, optional, tag = "18")]
pub last_signined_at: ::core::option::Option<u64>,
#[prost(uint64, tag = "19")]
pub created_at: u64,
#[prost(uint64, tag = "20")]
pub updated_at: u64,
#[prost(uint64, optional, tag = "21")]
pub deleted_at: ::core::option::Option<u64>,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum MemberState {
None = 0,
Normal = 1,
Pending = 2,
Withdrawal = 3,
Dormancy = 4,
Blacklist = 5,
Suspended = 6,
}

View File

@ -0,0 +1,17 @@
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MemberBalance {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub member_id: ::prost::alloc::string::String,
#[prost(double, tag = "3")]
pub balance: f64,
#[prost(double, tag = "4")]
pub balance_bota: f64,
#[prost(double, tag = "5")]
pub balance_sum: f64,
#[prost(uint64, tag = "6")]
pub created_at: u64,
#[prost(uint64, tag = "7")]
pub updated_at: u64,
}

View File

@ -0,0 +1,42 @@
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MemberBankAccount {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub member_id: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub bank_id: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub account_number: ::prost::alloc::string::String,
#[prost(string, tag = "6")]
pub exchange_password: ::prost::alloc::string::String,
#[prost(string, optional, tag = "7")]
pub memo: ::core::option::Option<::prost::alloc::string::String>,
#[prost(uint64, tag = "8")]
pub created_at: u64,
#[prost(uint64, tag = "9")]
pub updated_at: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MemberBankAccountModel {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub member_id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub bank: ::core::option::Option<crate::models::bank::Bank>,
#[prost(string, tag = "4")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub account_number: ::prost::alloc::string::String,
#[prost(string, tag = "6")]
pub exchange_password: ::prost::alloc::string::String,
#[prost(string, optional, tag = "7")]
pub memo: ::core::option::Option<::prost::alloc::string::String>,
#[prost(uint64, tag = "8")]
pub created_at: u64,
#[prost(uint64, tag = "9")]
pub updated_at: u64,
}

View File

@ -0,0 +1,50 @@
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MemberBankDeposit {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub member_id: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub name: ::prost::alloc::string::String,
#[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")]
pub state: i32,
#[prost(uint64, tag = "7")]
pub state_changed_at: u64,
#[prost(uint64, tag = "8")]
pub created_at: u64,
#[prost(uint64, tag = "9")]
pub updated_at: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MemberBankDepositModel {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub member: ::core::option::Option<super::member::Member>,
#[prost(string, tag = "3")]
pub name: ::prost::alloc::string::String,
#[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")]
pub state: i32,
#[prost(uint64, tag = "7")]
pub state_changed_at: u64,
#[prost(uint64, tag = "8")]
pub created_at: u64,
#[prost(uint64, tag = "9")]
pub updated_at: u64,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum MemberBankDepositState {
None = 0,
Application = 1,
Pending = 2,
Complete = 3,
}

View File

@ -0,0 +1,62 @@
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MemberBankWithdraw {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub member_id: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub bank_name: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub account_number: ::prost::alloc::string::String,
#[prost(double, tag = "6")]
pub amount: f64,
#[prost(string, tag = "7")]
pub password: ::prost::alloc::string::String,
#[prost(string, optional, tag = "8")]
pub memo: ::core::option::Option<::prost::alloc::string::String>,
#[prost(enumeration = "MemberBankWithdrawState", tag = "9")]
pub state: i32,
#[prost(uint64, tag = "10")]
pub state_changed_at: u64,
#[prost(uint64, tag = "11")]
pub created_at: u64,
#[prost(uint64, tag = "12")]
pub updated_at: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MemberBankWithdrawModel {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub member: ::core::option::Option<super::member::Member>,
#[prost(string, tag = "3")]
pub bank_name: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub account_number: ::prost::alloc::string::String,
#[prost(double, tag = "6")]
pub amount: f64,
#[prost(string, tag = "7")]
pub password: ::prost::alloc::string::String,
#[prost(string, optional, tag = "8")]
pub memo: ::core::option::Option<::prost::alloc::string::String>,
#[prost(enumeration = "MemberBankWithdrawState", tag = "9")]
pub state: i32,
#[prost(uint64, tag = "10")]
pub state_changed_at: u64,
#[prost(uint64, tag = "11")]
pub created_at: u64,
#[prost(uint64, tag = "12")]
pub updated_at: u64,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum MemberBankWithdrawState {
None = 0,
Application = 1,
Pending = 2,
Complete = 3,
}

View File

@ -0,0 +1,15 @@
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MemberClass {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, optional, tag = "2")]
pub parent_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, tag = "3")]
pub name: ::prost::alloc::string::String,
#[prost(bool, tag = "4")]
pub show: bool,
#[prost(uint64, tag = "5")]
pub created_at: u64,
#[prost(uint64, tag = "6")]
pub updated_at: u64,
}

View File

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

View File

@ -0,0 +1,15 @@
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MemberLevel {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
#[prost(bool, tag = "3")]
pub show: bool,
#[prost(uint32, tag = "4")]
pub sort_order: u32,
#[prost(uint64, tag = "5")]
pub created_at: u64,
#[prost(uint64, tag = "6")]
pub updated_at: u64,
}

View File

View File

@ -0,0 +1,30 @@
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MemberReferrer {
#[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_use: bool,
#[prost(string, optional, tag = "4")]
pub memo: ::core::option::Option<::prost::alloc::string::String>,
#[prost(uint64, tag = "5")]
pub created_at: u64,
#[prost(uint64, tag = "6")]
pub updated_at: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MemberReferrerModel {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub member: ::core::option::Option<super::member::Member>,
#[prost(bool, tag = "3")]
pub can_use: bool,
#[prost(string, optional, tag = "4")]
pub memo: ::core::option::Option<::prost::alloc::string::String>,
#[prost(uint64, tag = "5")]
pub created_at: u64,
#[prost(uint64, tag = "6")]
pub updated_at: u64,
}

View File

View File

@ -0,0 +1,15 @@
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MemberSession {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub member_id: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub ip: ::prost::alloc::string::String,
#[prost(uint64, tag = "4")]
pub last_accessed_at: u64,
#[prost(uint64, tag = "5")]
pub expires_at: u64,
#[prost(uint64, tag = "6")]
pub created_at: u64,
}

View File

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

20
src/models/mod.rs Normal file
View File

@ -0,0 +1,20 @@
pub mod api;
pub mod bank;
pub mod core;
pub mod member;
pub mod member_balance;
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;
pub mod site;

19
src/models/resource.rs Normal file
View File

@ -0,0 +1,19 @@
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Resource {
#[prost(string, tag="1")]
pub id: ::prost::alloc::string::String,
#[prost(message, optional, boxed, tag="2")]
pub parent: ::core::option::Option<::prost::alloc::boxed::Box<Resource>>,
#[prost(string, tag="3")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag="4")]
pub key: ::prost::alloc::string::String,
#[prost(string, tag="5")]
pub description: ::prost::alloc::string::String,
#[prost(bool, tag="6")]
pub can_use: bool,
#[prost(uint64, tag="7")]
pub created_at: u64,
#[prost(uint64, tag="8")]
pub updated_at: u64,
}

View File

@ -0,0 +1,19 @@
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResourceAction {
#[prost(string, tag="1")]
pub id: ::prost::alloc::string::String,
#[prost(message, optional, tag="2")]
pub resource: ::core::option::Option<super::resource::Resource>,
#[prost(string, tag="3")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag="4")]
pub key: ::prost::alloc::string::String,
#[prost(string, tag="5")]
pub description: ::prost::alloc::string::String,
#[prost(bool, tag="6")]
pub can_use: bool,
#[prost(uint64, tag="7")]
pub created_at: u64,
#[prost(uint64, tag="8")]
pub updated_at: u64,
}

19
src/models/role.rs Normal file
View File

@ -0,0 +1,19 @@
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Role {
#[prost(string, tag="1")]
pub id: ::prost::alloc::string::String,
#[prost(message, optional, boxed, tag="2")]
pub parent: ::core::option::Option<::prost::alloc::boxed::Box<Role>>,
#[prost(string, tag="3")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag="4")]
pub key: ::prost::alloc::string::String,
#[prost(string, tag="5")]
pub description: ::prost::alloc::string::String,
#[prost(bool, tag="6")]
pub can_use: bool,
#[prost(uint64, tag="7")]
pub created_at: u64,
#[prost(uint64, tag="8")]
pub updated_at: u64,
}

23
src/models/site.rs Normal file
View File

@ -0,0 +1,23 @@
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Site {
#[prost(string, tag="1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag="2")]
pub url: ::prost::alloc::string::String,
#[prost(string, optional, tag="3")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag="4")]
pub path: ::core::option::Option<::prost::alloc::string::String>,
#[prost(bool, tag="5")]
pub show: bool,
#[prost(bool, tag="6")]
pub can_use: bool,
#[prost(string, optional, tag="7")]
pub memo: ::core::option::Option<::prost::alloc::string::String>,
#[prost(uint64, optional, tag="8")]
pub expires_at: ::core::option::Option<u64>,
#[prost(uint64, tag="9")]
pub created_at: u64,
#[prost(uint64, tag="10")]
pub updated_at: u64,
}

2
src/protobuf/mod.rs Normal file
View File

@ -0,0 +1,2 @@
pub mod pagination;
pub mod rpc;

View File

@ -0,0 +1,20 @@
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Pagination {
#[prost(uint32, optional, tag="1")]
pub page: ::core::option::Option<u32>,
#[prost(uint32, optional, tag="2")]
pub page_size: ::core::option::Option<u32>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Sort {
#[prost(string, tag="1")]
pub by: ::prost::alloc::string::String,
#[prost(enumeration="SortOrder", tag="2")]
pub order: i32,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum SortOrder {
Asc = 0,
Desc = 1,
}

175
src/protobuf/rpc.rs Normal file
View File

@ -0,0 +1,175 @@
use std::fmt;
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Error {
#[prost(int32, tag = "1")]
pub code: i32,
#[prost(string, tag = "2")]
pub message: ::prost::alloc::string::String,
#[prost(bytes = "vec", optional, tag = "3")]
pub data: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
}
impl fmt::Display for Error {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(
f,
"Error code: {}, message: {:?}, data: {:?}",
self.code, self.message, self.data
)
}
}
impl Error {
pub const PARSE: i32 = -32700;
pub const INVALID_REQUEST: i32 = -32600;
pub const INVALID_PARAMS: i32 = -32602;
pub const INTERNAL: i32 = -32603;
pub const SERVER_00: i32 = -32000;
pub const SERVER_01: i32 = -32001;
pub const SERVER_02: i32 = -32002;
pub const SERVER_03: i32 = -32003;
pub const SERVER_04: i32 = -32004;
pub const SERVER_05: i32 = -32005;
pub const SERVER_06: i32 = -32006;
pub const SERVER_07: i32 = -32007;
pub const SERVER_08: i32 = -32008;
pub const SERVER_09: i32 = -32009;
pub const SERVER_10: i32 = -32010;
pub const SERVER_11: i32 = -32011;
pub const SERVER_12: i32 = -32012;
pub const SERVER_13: i32 = -32013;
pub const SERVER_14: i32 = -32014;
pub const SERVER_15: i32 = -32015;
pub const SERVER_16: i32 = -32016;
pub const SERVER_17: i32 = -32017;
pub const SERVER_18: i32 = -32018;
pub const SERVER_19: i32 = -32019;
pub const SERVER_20: i32 = -32020;
pub const SERVER_21: i32 = -32021;
pub const SERVER_22: i32 = -32022;
pub const SERVER_23: i32 = -32023;
pub const SERVER_24: i32 = -32024;
pub const SERVER_25: i32 = -32025;
pub const SERVER_26: i32 = -32026;
pub const SERVER_27: i32 = -32027;
pub const SERVER_28: i32 = -32028;
pub const SERVER_29: i32 = -32029;
pub const SERVER_30: i32 = -32030;
pub const SERVER_31: i32 = -32031;
pub const SERVER_32: i32 = -32032;
pub const SERVER_33: i32 = -32033;
pub const SERVER_34: i32 = -32034;
pub const SERVER_35: i32 = -32035;
pub const SERVER_36: i32 = -32036;
pub const SERVER_37: i32 = -32037;
pub const SERVER_38: i32 = -32038;
pub const SERVER_39: i32 = -32039;
pub const SERVER_40: i32 = -32040;
pub const SERVER_41: i32 = -32041;
pub const SERVER_42: i32 = -32042;
pub const SERVER_43: i32 = -32043;
pub const SERVER_44: i32 = -32044;
pub const SERVER_45: i32 = -32045;
pub const SERVER_46: i32 = -32046;
pub const SERVER_47: i32 = -32047;
pub const SERVER_48: i32 = -32048;
pub const SERVER_49: i32 = -32049;
pub const SERVER_50: i32 = -32050;
pub const SERVER_51: i32 = -32051;
pub const SERVER_52: i32 = -32052;
pub const SERVER_53: i32 = -32053;
pub const SERVER_54: i32 = -32054;
pub const SERVER_55: i32 = -32055;
pub const SERVER_56: i32 = -32056;
pub const SERVER_57: i32 = -32057;
pub const SERVER_58: i32 = -32058;
pub const SERVER_59: i32 = -32059;
pub const SERVER_60: i32 = -32060;
pub const SERVER_61: i32 = -32061;
pub const SERVER_62: i32 = -32062;
pub const SERVER_63: i32 = -32063;
pub const SERVER_64: i32 = -32064;
pub const SERVER_65: i32 = -32065;
pub const SERVER_66: i32 = -32066;
pub const SERVER_67: i32 = -32067;
pub const SERVER_68: i32 = -32068;
pub const SERVER_69: i32 = -32069;
pub const SERVER_70: i32 = -32070;
pub const SERVER_71: i32 = -32071;
pub const SERVER_72: i32 = -32072;
pub const SERVER_73: i32 = -32073;
pub const SERVER_74: i32 = -32074;
pub const SERVER_75: i32 = -32075;
pub const SERVER_76: i32 = -32076;
pub const SERVER_77: i32 = -32077;
pub const SERVER_78: i32 = -32078;
pub const SERVER_79: i32 = -32079;
pub const SERVER_80: i32 = -32080;
pub const SERVER_81: i32 = -32081;
pub const SERVER_82: i32 = -32082;
pub const SERVER_83: i32 = -32083;
pub const SERVER_84: i32 = -32084;
pub const SERVER_85: i32 = -32085;
pub const SERVER_86: i32 = -32086;
pub const SERVER_87: i32 = -32087;
pub const SERVER_88: i32 = -32088;
pub const SERVER_89: i32 = -32089;
pub const SERVER_90: i32 = -32090;
pub const SERVER_91: i32 = -32091;
pub const SERVER_92: i32 = -32092;
pub const SERVER_93: i32 = -32093;
pub const SERVER_94: i32 = -32094;
pub const SERVER_95: i32 = -32095;
pub const SERVER_96: i32 = -32096;
pub const SERVER_97: i32 = -32097;
pub const SERVER_98: i32 = -32098;
pub const SERVER_99: i32 = -32099;
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InvalidParamsDetail {
#[prost(string, tag = "1")]
pub location: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub param: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub value: ::prost::alloc::string::String,
#[prost(enumeration = "InvalidParamsType", tag = "4")]
pub error_type: i32,
#[prost(string, tag = "5")]
pub message: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum InvalidParamsType {
None = 0,
DateTime = 1,
Decimal = 2,
EqualsTo = 3,
Float = 4,
Integer = 5,
Range = 6,
RegEx = 7,
Required = 8,
StringLength = 9,
Url = 10,
}
impl From<i32> for InvalidParamsType {
fn from(s: i32) -> Self {
match s {
s if s == InvalidParamsType::DateTime as i32 => InvalidParamsType::DateTime,
s if s == InvalidParamsType::Decimal as i32 => InvalidParamsType::Decimal,
s if s == InvalidParamsType::EqualsTo as i32 => InvalidParamsType::EqualsTo,
s if s == InvalidParamsType::Float as i32 => InvalidParamsType::Float,
s if s == InvalidParamsType::Integer as i32 => InvalidParamsType::Integer,
s if s == InvalidParamsType::Range as i32 => InvalidParamsType::Range,
s if s == InvalidParamsType::RegEx as i32 => InvalidParamsType::RegEx,
s if s == InvalidParamsType::Required as i32 => InvalidParamsType::Required,
s if s == InvalidParamsType::StringLength as i32 => InvalidParamsType::StringLength,
s if s == InvalidParamsType::Url as i32 => InvalidParamsType::Url,
_ => InvalidParamsType::None,
}
}
}

112
src/ss/api/betting.rs Normal file
View File

@ -0,0 +1,112 @@
const SUBJECT: &str = "bet.beteran.ss.api.betting";
pub const SUBJECT_LIST_BETTING_HISTORY: &str =
const_format::concatcp!(SUBJECT, ".ListBettingHistory");
/// subject = bet.beteran.ss.api.betting.ListBettingHistory
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListBettingHistoryRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<list_betting_history_request::Request>,
}
/// Nested message and enum types in `ListBettingHistoryRequest`.
pub mod list_betting_history_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
#[prost(message, optional, tag = "1")]
pub pagination: ::core::option::Option<crate::protobuf::pagination::Pagination>,
#[prost(message, repeated, tag = "2")]
pub sorts: ::prost::alloc::vec::Vec<crate::protobuf::pagination::Sort>,
#[prost(message, optional, tag = "3")]
pub search: ::core::option::Option<request::Search>,
}
/// 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>,
#[prost(uint64, optional, tag = "2")]
pub vendor_id: ::core::option::Option<u64>,
#[prost(uint64, repeated, tag = "3")]
pub vendor_ids: ::prost::alloc::vec::Vec<u64>,
#[prost(string, optional, tag = "4")]
pub vendor_name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "5")]
pub vendor_name_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(uint64, optional, tag = "6")]
pub game_id: ::core::option::Option<u64>,
#[prost(uint64, repeated, tag = "7")]
pub game_ids: ::prost::alloc::vec::Vec<u64>,
#[prost(string, optional, tag = "8")]
pub game_name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "9")]
pub game_name_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "10")]
pub game_category: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "11")]
pub game_category_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "12")]
pub game_type: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "13")]
pub game_type_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "14")]
pub currency: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "15")]
pub currency_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "16")]
pub key: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "17")]
pub key_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "18")]
pub ref_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "19")]
pub ref_id_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "20")]
pub o_ref_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "21")]
pub o_ref_id_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "22")]
pub group_key: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "23")]
pub group_key_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(bool, optional, tag = "24")]
pub is_bonus: ::core::option::Option<bool>,
#[prost(bool, optional, tag = "25")]
pub is_promo: ::core::option::Option<bool>,
#[prost(bool, optional, tag = "26")]
pub is_jackpot: ::core::option::Option<bool>,
#[prost(string, optional, tag = "27")]
pub site_username: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "28")]
pub site_username_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "29")]
pub betting_type: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "30")]
pub betting_type_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "31")]
pub category: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "32")]
pub category_like: ::core::option::Option<::prost::alloc::string::String>,
}
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListBettingHistoryResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<list_betting_history_response::Result>,
}
/// Nested message and enum types in `ListBettingHistoryResponse`.
pub mod list_betting_history_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(uint64, tag = "1")]
pub total_count: u64,
#[prost(message, repeated, tag = "2")]
pub betting_history: ::prost::alloc::vec::Vec<crate::models::api::betting::BettingHistory>,
}
}

97
src/ss/api/game.rs Normal file
View File

@ -0,0 +1,97 @@
const SUBJECT: &str = "bet.beteran.ss.api.game";
pub const SUBJECT_LIST_GAMES: &str = const_format::concatcp!(SUBJECT, ".ListGames");
pub const SUBJECT_GET_GAME_URL: &str = const_format::concatcp!(SUBJECT, ".GetGameUrl");
/// subject = bet.beteran.ss.api.game.ListGames
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListGamesRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<list_games_request::Request>,
}
/// Nested message and enum types in `ListGamesRequest`.
pub mod list_games_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
#[prost(message, optional, tag = "1")]
pub pagination: ::core::option::Option<crate::protobuf::pagination::Pagination>,
#[prost(message, repeated, tag = "2")]
pub sorts: ::prost::alloc::vec::Vec<crate::protobuf::pagination::Sort>,
#[prost(message, optional, tag = "3")]
pub search: ::core::option::Option<request::Search>,
}
/// Nested message and enum types in `Request`.
pub mod request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Search {
#[prost(uint64, optional, tag = "1")]
pub parent_id: ::core::option::Option<u64>,
#[prost(string, optional, tag = "2")]
pub key_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "3")]
pub platform_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "4")]
pub category_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "5")]
pub game_type_like: ::core::option::Option<::prost::alloc::string::String>,
}
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListGamesResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<list_games_response::Result>,
}
/// Nested message and enum types in `ListGamesResponse`.
pub mod list_games_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(uint64, tag = "1")]
pub total_count: u64,
#[prost(message, repeated, tag = "2")]
pub games: ::prost::alloc::vec::Vec<crate::models::api::game::Game>,
}
}
/// subject = bet.beteran.ss.api.game.GetGameUrl
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetGameUrlRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<get_game_url_request::Request>,
}
/// Nested message and enum types in `GetGameUrlRequest`.
pub mod get_game_url_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
#[prost(string, tag = "1")]
pub vendor_key: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub game_key: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub member_id: ::prost::alloc::string::String,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetGameUrlResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<get_game_url_response::Result>,
}
/// Nested message and enum types in `GetGameUrlResponse`.
pub mod get_game_url_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(uint64, tag = "1")]
pub user_id: u64,
#[prost(double, tag = "2")]
pub balance: f64,
#[prost(string, tag = "3")]
pub url: ::prost::alloc::string::String,
}
}

3
src/ss/api/mod.rs Normal file
View File

@ -0,0 +1,3 @@
pub mod betting;
pub mod game;
pub mod vendor;

59
src/ss/api/vendor.rs Normal file
View File

@ -0,0 +1,59 @@
const SUBJECT: &str = "bet.beteran.ss.api.vendor";
pub const SUBJECT_LIST_VENDORS: &str = const_format::concatcp!(SUBJECT, ".ListVendors");
/// subject = bet.beteran.ss.api.vendor.ListVendors
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListVendorsRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<list_vendors_request::Request>,
}
/// Nested message and enum types in `ListVendorsRequest`.
pub mod list_vendors_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
#[prost(message, optional, tag = "1")]
pub pagination: ::core::option::Option<crate::protobuf::pagination::Pagination>,
#[prost(message, repeated, tag = "2")]
pub sorts: ::prost::alloc::vec::Vec<crate::protobuf::pagination::Sort>,
#[prost(message, optional, tag = "3")]
pub search: ::core::option::Option<request::Search>,
}
/// Nested message and enum types in `Request`.
pub mod request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Search {
#[prost(uint64, optional, tag = "1")]
pub company_id: ::core::option::Option<u64>,
#[prost(uint64, optional, tag = "2")]
pub vendor_id: ::core::option::Option<u64>,
#[prost(string, optional, tag = "3")]
pub key_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "4")]
pub name_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "5")]
pub category_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "6")]
pub is_enable: ::core::option::Option<::prost::alloc::string::String>,
}
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListVendorsResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<list_vendors_response::Result>,
}
/// Nested message and enum types in `ListVendorsResponse`.
pub mod list_vendors_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(uint64, tag = "1")]
pub total_count: u64,
#[prost(message, repeated, tag = "2")]
pub vendors: ::prost::alloc::vec::Vec<crate::models::api::vendor::Vendor>,
}
}

198
src/ss/bank.rs Normal file
View File

@ -0,0 +1,198 @@
const SUBJECT: &str = "bet.beteran.ss.bank";
pub const SUBJECT_CREATE_BANK: &str = const_format::concatcp!(SUBJECT, ".CreateBank");
pub const SUBJECT_LIST_BANKS: &str = const_format::concatcp!(SUBJECT, ".ListBanks");
pub const SUBJECT_GET_BANK: &str = const_format::concatcp!(SUBJECT, ".GetBank");
pub const SUBJECT_UPDATE_BANK: &str = const_format::concatcp!(SUBJECT, ".UpdateBank");
pub const SUBJECT_DELETE_BANK: &str = const_format::concatcp!(SUBJECT, ".DeleteBank");
/// subject = bet.beteran.ss.bank.CreateBank;
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateBankRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<create_bank_request::Request>,
}
/// Nested message and enum types in `CreateBankRequest`.
pub mod create_bank_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(uint32, tag = "2")]
pub sort_order: u32,
#[prost(bool, tag = "3")]
pub show: bool,
#[prost(bool, tag = "4")]
pub can_use: bool,
#[prost(string, optional, tag = "5")]
pub memo: ::core::option::Option<::prost::alloc::string::String>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateBankResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<create_bank_response::Result>,
}
/// Nested message and enum types in `CreateBankResponse`.
pub mod create_bank_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub bank: ::core::option::Option<crate::models::bank::Bank>,
}
}
/// subject = bet.beteran.ss.bank.ListBanks;
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListBanksRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<list_banks_request::Request>,
}
/// Nested message and enum types in `ListBanksRequest`.
pub mod list_banks_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
#[prost(message, optional, tag = "1")]
pub pagination: ::core::option::Option<crate::protobuf::pagination::Pagination>,
#[prost(message, repeated, tag = "2")]
pub sorts: ::prost::alloc::vec::Vec<crate::protobuf::pagination::Sort>,
#[prost(message, optional, tag = "3")]
pub search: ::core::option::Option<request::Search>,
}
/// Nested message and enum types in `Request`.
pub mod request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Search {
#[prost(string, optional, tag = "1")]
pub name_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(bool, optional, tag = "2")]
pub show: ::core::option::Option<bool>,
#[prost(bool, optional, tag = "3")]
pub can_use: ::core::option::Option<bool>,
#[prost(string, optional, tag = "4")]
pub memo_like: ::core::option::Option<::prost::alloc::string::String>,
}
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListBanksResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<list_banks_response::Result>,
}
/// Nested message and enum types in `ListBanksResponse`.
pub mod list_banks_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(uint64, tag = "1")]
pub total_count: u64,
#[prost(message, repeated, tag = "2")]
pub banks: ::prost::alloc::vec::Vec<crate::models::bank::Bank>,
}
}
/// subject = bet.beteran.ss.bank.GetBank
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetBankRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<get_bank_request::Request>,
}
/// Nested message and enum types in `GetBankRequest`.
pub mod get_bank_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 GetBankResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<get_bank_response::Result>,
}
/// Nested message and enum types in `GetBankResponse`.
pub mod get_bank_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub bank: ::core::option::Option<crate::models::bank::Bank>,
}
}
/// subject = bet.beteran.ss.bank.UpdateBank
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateBankRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<update_bank_request::Request>,
}
/// Nested message and enum types in `UpdateBankRequest`.
pub mod update_bank_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
#[prost(uint32, tag = "3")]
pub sort_order: u32,
#[prost(bool, tag = "4")]
pub show: bool,
#[prost(bool, tag = "5")]
pub can_use: bool,
#[prost(string, optional, tag = "6")]
pub memo: ::core::option::Option<::prost::alloc::string::String>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateBankResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<update_bank_response::Result>,
}
/// Nested message and enum types in `UpdateBankResponse`.
pub mod update_bank_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub bank: ::core::option::Option<crate::models::bank::Bank>,
}
}
/// subject = bet.beteran.ss.bank.DeleteBank
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteBankRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<delete_bank_request::Request>,
}
/// Nested message and enum types in `DeleteBankRequest`.
pub mod delete_bank_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 DeleteBankResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<delete_bank_response::Result>,
}
/// Nested message and enum types in `DeleteBankResponse`.
pub mod delete_bank_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {}
}

210
src/ss/identity.rs Normal file
View File

@ -0,0 +1,210 @@
const SUBJECT: &str = "bet.beteran.ss.identity";
const EVENT_SUBJECT: &str = "bet.beteran.ss_event.identity";
pub const SUBJECT_CHECK_USERNAME_FOR_DUPLICATION: &str =
const_format::concatcp!(SUBJECT, ".CheckUsernameForDuplication");
pub const SUBJECT_CHECK_NICKNAME_FOR_DUPLICATION: &str =
const_format::concatcp!(SUBJECT, ".CheckNicknameForDuplication");
pub const SUBJECT_CAPTCHA: &str = const_format::concatcp!(SUBJECT, ".Captcha");
pub const SUBJECT_SIGNIN: &str = const_format::concatcp!(SUBJECT, ".Signin");
pub const SUBJECT_SIGNIN_WITHOUT_SECURITY_CODE: &str =
const_format::concatcp!(SUBJECT, ".SigninWithoutSecurityCode");
pub const EVENT_SUBJECT_AFTER_SIGNIN: &str = const_format::concatcp!(EVENT_SUBJECT, ".AfterSignin");
pub const EVENT_SUBJECT_AFTER_SIGNOUT: &str =
const_format::concatcp!(EVENT_SUBJECT, ".AfterSignout");
/// subject = bet.beteran.ss.identity.CheckUsernameForDuplication;
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CheckUsernameForDuplicationRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<check_username_for_duplication_request::Request>,
}
/// Nested message and enum types in `CheckUsernameForDuplicationRequest`.
pub mod check_username_for_duplication_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
#[prost(string, tag = "1")]
pub username: ::prost::alloc::string::String,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CheckUsernameForDuplicationResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<check_username_for_duplication_response::Result>,
}
/// Nested message and enum types in `CheckUsernameForDuplicationResponse`.
pub mod check_username_for_duplication_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(bool, tag = "1")]
pub duplicated: bool,
}
}
/// subject = bet.beteran.ss.identity.CheckNicknameForDuplication;
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CheckNicknameForDuplicationRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<check_nickname_for_duplication_request::Request>,
}
/// Nested message and enum types in `CheckNicknameForDuplicationRequest`.
pub mod check_nickname_for_duplication_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
#[prost(string, tag = "1")]
pub nickname: ::prost::alloc::string::String,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CheckNicknameForDuplicationResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<check_nickname_for_duplication_response::Result>,
}
/// Nested message and enum types in `CheckNicknameForDuplicationResponse`.
pub mod check_nickname_for_duplication_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(bool, tag = "1")]
pub duplicated: bool,
}
}
/// subject = bet.beteran.ss.identity.Captcha
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CaptchaRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<captcha_request::Request>,
}
/// Nested message and enum types in `CaptchaRequest`.
pub mod captcha_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CaptchaResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<captcha_response::Result>,
}
/// Nested message and enum types in `CaptchaResponse`.
pub mod captcha_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(string, tag = "1")]
pub security_code_hash: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub image: ::prost::alloc::string::String,
}
}
/// subject = bet.beteran.ss.identity.Signin
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SigninRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<signin_request::Request>,
}
/// Nested message and enum types in `SigninRequest`.
pub mod signin_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
#[prost(string, tag = "1")]
pub security_code_hash: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub security_code: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub username: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub password: ::prost::alloc::string::String,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SigninResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<signin_response::Result>,
}
/// Nested message and enum types in `SigninResponse`.
pub mod signin_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(string, tag = "1")]
pub access_token: ::prost::alloc::string::String,
}
}
/// subject = bet.beteran.ss.identity.SigninWithoutSecurityCode
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SigninWithoutSecurityCodeRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<signin_without_security_code_request::Request>,
}
/// Nested message and enum types in `SigninWithoutSecurityCodeRequest`.
pub mod signin_without_security_code_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
#[prost(string, tag = "1")]
pub username: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub password: ::prost::alloc::string::String,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SigninWithoutSecurityCodeResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<signin_without_security_code_response::Result>,
}
/// Nested message and enum types in `SigninWithoutSecurityCodeResponse`.
pub mod signin_without_security_code_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(string, tag = "1")]
pub access_token: ::prost::alloc::string::String,
}
}
/// subject = bet.beteran.ss_event.identity.AfterSignin
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AfterSigninEvent {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub event: ::core::option::Option<after_signin_event::Event>,
}
/// Nested message and enum types in `AfterSigninEvent`.
pub mod after_signin_event {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Event {
#[prost(message, optional, tag = "1")]
pub member: ::core::option::Option<crate::models::member::Member>,
}
}
/// subject = bet.beteran.ss_event.identity.AfterSignout
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AfterSignoutEvent {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub event: ::core::option::Option<after_signout_event::Event>,
}
/// Nested message and enum types in `AfterSignoutEvent`.
pub mod after_signout_event {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Event {
#[prost(message, optional, tag = "1")]
pub member: ::core::option::Option<crate::models::member::Member>,
}
}

621
src/ss/member.rs Normal file
View File

@ -0,0 +1,621 @@
const SUBJECT: &str = "bet.beteran.ss.member";
const EVENT_SUBJECT: &str = "bet.beteran.ss_event.member";
pub const SUBJECT_CREATE_MEMBER: &str = const_format::concatcp!(SUBJECT, ".CreateMember");
pub const SUBJECT_LIST_MEMBERS: &str = const_format::concatcp!(SUBJECT, ".ListMembers");
pub const SUBJECT_GET_MEMBER: &str = const_format::concatcp!(SUBJECT, ".GetMember");
pub const SUBJECT_GET_MEMBER_BY_USERNAME: &str =
const_format::concatcp!(SUBJECT, ".GetMemberByUsername");
pub const SUBJECT_GET_MEMBER_B: &str = const_format::concatcp!(SUBJECT, ".GetMemberB");
pub const SUBJECT_GET_MEMBER_B_BY_USERNAME: &str =
const_format::concatcp!(SUBJECT, ".GetMemberBByUsername");
pub const SUBJECT_UPDATE_MEMBER: &str = const_format::concatcp!(SUBJECT, ".UpdateMember");
pub const SUBJECT_UPDATE_MEMBER_FOR_PASSWORD: &str =
const_format::concatcp!(SUBJECT, ".UpdateMemberForPassword");
pub const SUBJECT_UPDATE_MEMBER_FOR_STATE: &str =
const_format::concatcp!(SUBJECT, ".UpdateMemberForState");
pub const SUBJECT_DELETE_MEMBER: &str = const_format::concatcp!(SUBJECT, ".DeleteMember");
pub const EVENT_SUBJECT_AFTER_CREATE_MEMBER: &str =
const_format::concatcp!(EVENT_SUBJECT, ".AfterCreateMember");
pub const EVENT_SUBJECT_AFTER_UPDATE_MEMBER: &str =
const_format::concatcp!(EVENT_SUBJECT, ".AfterUpdateMember");
pub const EVENT_SUBJECT_AFTER_DELETE_MEMBER: &str =
const_format::concatcp!(EVENT_SUBJECT, ".AfterDeleteMember");
/// subject = bet.beteran.ss.member.CreateMember
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateMemberRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<create_member_request::Request>,
}
/// Nested message and enum types in `CreateMemberRequest`.
pub mod create_member_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
#[prost(string, tag = "1")]
pub site_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub member_class_id: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub member_level_id: ::prost::alloc::string::String,
#[prost(string, optional, tag = "4")]
pub referrer_member_username: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, tag = "5")]
pub username: ::prost::alloc::string::String,
#[prost(string, tag = "6")]
pub password: ::prost::alloc::string::String,
#[prost(string, tag = "7")]
pub nickname: ::prost::alloc::string::String,
#[prost(string, optional, tag = "8")]
pub mobile_phone_number: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "9")]
pub bank_account: ::core::option::Option<request::BankAccount>,
#[prost(message, optional, tag = "10")]
pub game_setting: ::core::option::Option<request::GameSetting>,
#[prost(message, optional, tag = "11")]
pub settlement_setting: ::core::option::Option<request::SettlementSetting>,
#[prost(enumeration = "crate::models::member::MemberState", tag = "12")]
pub state: i32,
}
/// Nested message and enum types in `Request`.
pub mod request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BankAccount {
#[prost(string, tag = "1")]
pub bank_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub account_number: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub exchange_password: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GameSetting {
#[prost(bool, tag = "1")]
pub can_bet_casino: bool,
#[prost(bool, tag = "2")]
pub can_bet_slot: bool,
#[prost(bool, tag = "3")]
pub can_bet_powerball: bool,
#[prost(bool, tag = "4")]
pub can_bet_powerladder: bool,
#[prost(bool, tag = "5")]
pub can_bet_eos: bool,
#[prost(bool, tag = "6")]
pub can_bet_bogglepowerball: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SettlementSetting {
#[prost(bool, tag = "1")]
pub can_exchange: bool,
#[prost(bool, tag = "2")]
pub can_first_charge_comp: bool,
#[prost(bool, tag = "3")]
pub can_per_charge_comp: bool,
#[prost(
enumeration = "crate::models::member_settlement_setting::SettlementType",
tag = "4"
)]
pub settlement_type: i32,
#[prost(
enumeration = "crate::models::member_settlement_setting::ManualPaymentType",
tag = "5"
)]
pub manual_payment_type_for_partner: i32,
#[prost(double, tag = "6")]
pub rate_casino: f64,
#[prost(double, tag = "7")]
pub rate_casino_loosing: f64,
#[prost(double, tag = "8")]
pub rate_casino_bacara: f64,
#[prost(double, tag = "9")]
pub rate_casino_roulette: f64,
#[prost(double, tag = "10")]
pub rate_casino_dragon_tiger: f64,
#[prost(double, tag = "11")]
pub rate_slot: f64,
#[prost(double, tag = "12")]
pub rate_slot_loosing: f64,
#[prost(double, tag = "13")]
pub rate_powerball_single: f64,
#[prost(double, tag = "14")]
pub rate_powerball_combo: f64,
#[prost(double, tag = "15")]
pub rate_powerladder_single: f64,
#[prost(double, tag = "16")]
pub rate_powerladder_combo: f64,
#[prost(double, tag = "17")]
pub rate_eos_single: f64,
#[prost(double, tag = "18")]
pub rate_eos_combo: f64,
#[prost(double, tag = "19")]
pub rate_bogglepowerball_single: f64,
#[prost(double, tag = "20")]
pub rate_bogglepowerball_combo: f64,
}
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateMemberResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<create_member_response::Result>,
}
/// Nested message and enum types in `CreateMemberResponse`.
pub mod create_member_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member: ::core::option::Option<crate::models::member::MemberModel>,
}
}
/// subject = bet.beteran.ss.member.ListMembers
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMembersRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<list_members_request::Request>,
}
/// Nested message and enum types in `ListMembersRequest`.
pub mod list_members_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
#[prost(message, optional, tag = "1")]
pub pagination: ::core::option::Option<crate::protobuf::pagination::Pagination>,
#[prost(message, repeated, tag = "2")]
pub sorts: ::prost::alloc::vec::Vec<crate::protobuf::pagination::Sort>,
#[prost(message, optional, tag = "3")]
pub search: ::core::option::Option<request::Search>,
}
/// Nested message and enum types in `Request`.
pub mod request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Search {
#[prost(string, optional, tag = "1")]
pub site_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "2")]
pub member_class_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "3")]
pub member_level_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "4")]
pub parent_member_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "5")]
pub username: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, repeated, tag = "6")]
pub usernames: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, optional, tag = "7")]
pub username_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "8")]
pub nickname: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, repeated, tag = "9")]
pub nicknames: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, optional, tag = "10")]
pub nickname_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "11")]
pub mobile_phone_number_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "12")]
pub last_signined_ip: ::core::option::Option<::prost::alloc::string::String>,
#[prost(
enumeration = "crate::models::member::MemberState",
optional,
tag = "13"
)]
pub state: ::core::option::Option<i32>,
#[prost(uint64, optional, tag = "14")]
pub deleted_at: ::core::option::Option<u64>,
}
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMembersResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<list_members_response::Result>,
}
/// Nested message and enum types in `ListMembersResponse`.
pub mod list_members_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(uint64, tag = "1")]
pub total_count: u64,
#[prost(message, repeated, tag = "2")]
pub members: ::prost::alloc::vec::Vec<crate::models::member::MemberModel>,
}
}
/// subject = bet.beteran.ss.member.GetMember
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<get_member_request::Request>,
}
/// Nested message and enum types in `GetMemberRequest`.
pub mod get_member_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 GetMemberResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<get_member_response::Result>,
}
/// Nested message and enum types in `GetMemberResponse`.
pub mod get_member_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member: ::core::option::Option<crate::models::member::MemberModel>,
}
}
/// subject = bet.beteran.ss.member.GetMemberByUsername
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberByUsernameRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<get_member_by_username_request::Request>,
}
/// Nested message and enum types in `GetMemberByUsernameRequest`.
pub mod get_member_by_username_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
#[prost(string, tag = "1")]
pub username: ::prost::alloc::string::String,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberByUsernameResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<get_member_by_username_response::Result>,
}
/// Nested message and enum types in `GetMemberByUsernameResponse`.
pub mod get_member_by_username_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member: ::core::option::Option<crate::models::member::MemberModel>,
}
}
/// subject = bet.beteran.ss.member.GetMemberB
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberBRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<get_member_b_request::Request>,
}
/// Nested message and enum types in `GetMemberBRequest`.
pub mod get_member_b_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 GetMemberBResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<get_member_b_response::Result>,
}
/// Nested message and enum types in `GetMemberBResponse`.
pub mod get_member_b_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member: ::core::option::Option<crate::models::member::Member>,
}
}
/// subject = bet.beteran.ss.member.GetMemberBByUsername
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberBByUsernameRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<get_member_b_by_username_request::Request>,
}
/// Nested message and enum types in `GetMemberBByUsernameRequest`.
pub mod get_member_b_by_username_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
#[prost(string, tag = "1")]
pub username: ::prost::alloc::string::String,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberBByUsernameResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<get_member_b_by_username_response::Result>,
}
/// Nested message and enum types in `GetMemberBByUsernameResponse`.
pub mod get_member_b_by_username_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member: ::core::option::Option<crate::models::member::Member>,
}
}
/// subject = bet.beteran.ss.member.UpdateMember
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<update_member_request::Request>,
}
/// Nested message and enum types in `UpdateMemberRequest`.
pub mod update_member_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, optional, tag = "2")]
pub site_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "3")]
pub member_level_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "4")]
pub mobile_phone_number: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "5")]
pub bank_account: ::core::option::Option<request::BankAccount>,
#[prost(message, optional, tag = "6")]
pub game_setting: ::core::option::Option<request::GameSetting>,
#[prost(message, optional, tag = "7")]
pub settlement_setting: ::core::option::Option<request::SettlementSetting>,
}
/// Nested message and enum types in `Request`.
pub mod request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BankAccount {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub bank_id: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub account_number: ::prost::alloc::string::String,
#[prost(string, optional, tag = "5")]
pub memo: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GameSetting {
#[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 SettlementSetting {
#[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 UpdateMemberResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<update_member_response::Result>,
}
/// Nested message and enum types in `UpdateMemberResponse`.
pub mod update_member_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member: ::core::option::Option<crate::models::member::MemberModel>,
}
}
/// subject = bet.beteran.ss.member.UpdateMemberForPassword
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberForPasswordRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<update_member_for_password_request::Request>,
}
/// Nested message and enum types in `UpdateMemberForPasswordRequest`.
pub mod update_member_for_password_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub password: ::prost::alloc::string::String,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberForPasswordResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<update_member_for_password_response::Result>,
}
/// Nested message and enum types in `UpdateMemberForPasswordResponse`.
pub mod update_member_for_password_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {}
}
/// subject = bet.beteran.ss.member.UpdateMemberForState
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberForStateRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<update_member_for_state_request::Request>,
}
/// Nested message and enum types in `UpdateMemberForStateRequest`.
pub mod update_member_for_state_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(enumeration = "crate::models::member::MemberState", tag = "2")]
pub state: i32,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberForStateResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<update_member_for_state_response::Result>,
}
/// Nested message and enum types in `UpdateMemberForStateResponse`.
pub mod update_member_for_state_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member: ::core::option::Option<crate::models::member::MemberModel>,
}
}
/// subject = bet.beteran.ss.member.DeleteMember
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteMemberRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<delete_member_request::Request>,
}
/// Nested message and enum types in `DeleteMemberRequest`.
pub mod delete_member_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 DeleteMemberResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<delete_member_response::Result>,
}
/// Nested message and enum types in `DeleteMemberResponse`.
pub mod delete_member_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {}
}
/// subject = bet.beteran.ss_event.member.AfterCreateMember
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AfterCreateMemberEvent {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub event: ::core::option::Option<after_create_member_event::Event>,
}
/// Nested message and enum types in `AfterCreateMemberEvent`.
pub mod after_create_member_event {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Event {
#[prost(message, optional, tag = "1")]
pub member: ::core::option::Option<crate::models::member::MemberModel>,
}
}
/// subject = bet.beteran.ss_event.member.AfterUpdateMember
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AfterUpdateMemberEvent {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub event: ::core::option::Option<after_update_member_event::Event>,
}
/// Nested message and enum types in `AfterUpdateMemberEvent`.
pub mod after_update_member_event {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Event {
#[prost(message, optional, tag = "1")]
pub member: ::core::option::Option<crate::models::member::MemberModel>,
}
}
/// subject = bet.beteran.ss_event.member.AfterDeleteMember
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AfterDeleteMemberEvent {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub event: ::core::option::Option<after_delete_member_event::Event>,
}
/// Nested message and enum types in `AfterDeleteMemberEvent`.
pub mod after_delete_member_event {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Event {
#[prost(message, optional, tag = "1")]
pub member: ::core::option::Option<crate::models::member::MemberModel>,
}
}

210
src/ss/member_balance.rs Normal file
View File

@ -0,0 +1,210 @@
const SUBJECT: &str = "bet.beteran.ss.member_balance";
const EVENT_SUBJECT: &str = "bet.beteran.ss_event.member_balance";
pub const SUBJECT_CREATE_MEMBER_BALANCE: &str =
const_format::concatcp!(SUBJECT, ".CreateMemberBalance");
pub const SUBJECT_LIST_MEMBER_BALANCES: &str =
const_format::concatcp!(SUBJECT, ".ListMemberBalances");
pub const SUBJECT_GET_MEMBER_BALANCE: &str = const_format::concatcp!(SUBJECT, ".GetMemberBalance");
pub const SUBJECT_UPDATE_MEMBER_BALANCE: &str =
const_format::concatcp!(SUBJECT, ".UpdateMemberBalance");
pub const SUBJECT_DELETE_MEMBER_BALANCE: &str =
const_format::concatcp!(SUBJECT, ".DeleteMemberBalance");
pub const EVENT_SUBJECT_AFTER_UPDATE_MEMBER_BALANCE: &str =
const_format::concatcp!(EVENT_SUBJECT, ".AfterUpdateMemberBalance");
/// subject = bet.beteran.ss.member_balance.CreateMemberBalance
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateMemberBalanceRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<create_member_balance_request::Request>,
}
/// Nested message and enum types in `CreateMemberBalanceRequest`.
pub mod create_member_balance_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 CreateMemberBalanceResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<create_member_balance_response::Result>,
}
/// Nested message and enum types in `CreateMemberBalanceResponse`.
pub mod create_member_balance_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_balance: ::core::option::Option<crate::models::member_balance::MemberBalance>,
}
}
/// subject = bet.beteran.ss.member_balance.ListMemberBalances
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMemberBalancesRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<list_member_balances_request::Request>,
}
/// Nested message and enum types in `ListMemberBalancesRequest`.
pub mod list_member_balances_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
#[prost(message, optional, tag = "1")]
pub pagination: ::core::option::Option<crate::protobuf::pagination::Pagination>,
#[prost(message, repeated, tag = "2")]
pub sorts: ::prost::alloc::vec::Vec<crate::protobuf::pagination::Sort>,
#[prost(message, optional, tag = "3")]
pub search: ::core::option::Option<request::Search>,
}
/// 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 ListMemberBalancesResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<list_member_balances_response::Result>,
}
/// Nested message and enum types in `ListMemberBalancesResponse`.
pub mod list_member_balances_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(uint64, tag = "1")]
pub total_count: u64,
#[prost(message, repeated, tag = "2")]
pub member_balances: ::prost::alloc::vec::Vec<crate::models::member_balance::MemberBalance>,
}
}
/// subject = bet.beteran.ss.member_balance.GetMemberBalance
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberBalanceRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<get_member_balance_request::Request>,
}
/// Nested message and enum types in `GetMemberBalanceRequest`.
pub mod get_member_balance_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 GetMemberBalanceResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<get_member_balance_response::Result>,
}
/// Nested message and enum types in `GetMemberBalanceResponse`.
pub mod get_member_balance_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_balance: ::core::option::Option<crate::models::member_balance::MemberBalance>,
}
}
/// subject = bet.beteran.ss.member_balance.UpdateMemberBalance
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberBalanceRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<update_member_balance_request::Request>,
}
/// Nested message and enum types in `UpdateMemberBalanceRequest`.
pub mod update_member_balance_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(double, tag = "2")]
pub balance: f64,
#[prost(double, tag = "3")]
pub balance_bota: f64,
#[prost(double, tag = "4")]
pub balance_sum: f64,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberBalanceResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<update_member_balance_response::Result>,
}
/// Nested message and enum types in `UpdateMemberBalanceResponse`.
pub mod update_member_balance_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_balance: ::core::option::Option<crate::models::member_balance::MemberBalance>,
}
}
/// subject = bet.beteran.ss.member_balance.DeleteMemberBalance
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteMemberBalanceRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<delete_member_balance_request::Request>,
}
/// Nested message and enum types in `DeleteMemberBalanceRequest`.
pub mod delete_member_balance_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 DeleteMemberBalanceResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<delete_member_balance_response::Result>,
}
/// Nested message and enum types in `DeleteMemberBalanceResponse`.
pub mod delete_member_balance_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {}
}
/// subject = bet.beteran.ss_event.member_balance.AfterUpdateMemberBalance
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AfterUpdateMemberBalanceEvent {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub event: ::core::option::Option<after_update_member_balance_event::Event>,
}
/// Nested message and enum types in `AfterUpdateMemberBalanceEvent`.
pub mod after_update_member_balance_event {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Event {
#[prost(string, tag = "1")]
pub member_id: ::prost::alloc::string::String,
#[prost(double, tag = "2")]
pub balance: f64,
#[prost(double, tag = "3")]
pub balance_bota: f64,
#[prost(double, tag = "4")]
pub balance_sum: f64,
}
}

View File

@ -0,0 +1,243 @@
const SUBJECT: &str = "bet.beteran.ss.member_bank_account";
pub const SUBJECT_CREATE_MEMBER_BANK_ACCOUNT: &str =
const_format::concatcp!(SUBJECT, ".CreateMemberBankAccount");
pub const SUBJECT_LIST_MEMBER_BANK_ACCOUNTS: &str =
const_format::concatcp!(SUBJECT, ".ListMemberBankAccounts");
pub const SUBJECT_GET_MEMBER_BANK_ACCOUNT: &str =
const_format::concatcp!(SUBJECT, ".GetMemberBankAccount");
pub const SUBJECT_UPDATE_MEMBER_BANK_ACCOUNT: &str =
const_format::concatcp!(SUBJECT, ".UpdateMemberBankAccount");
pub const SUBJECT_UPDATE_MEMBER_BANK_ACCOUNT_FOR_EXCHANGE_PASSWORD: &str =
const_format::concatcp!(SUBJECT, ".UpdateMemberBankAccountForExchangePassword");
pub const SUBJECT_DELETE_MEMBER_BANK_ACCOUNT: &str =
const_format::concatcp!(SUBJECT, ".DeleteMemberBankAccount");
/// subject = bet.beteran.ss.member_bank_account.CreateMemberBankAccount
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateMemberBankAccountRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<create_member_bank_account_request::Request>,
}
/// Nested message and enum types in `CreateMemberBankAccountRequest`.
pub mod create_member_bank_account_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
#[prost(string, tag = "1")]
pub member_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub bank_id: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub account_number: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub exchange_password: ::prost::alloc::string::String,
#[prost(string, optional, tag = "6")]
pub memo: ::core::option::Option<::prost::alloc::string::String>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateMemberBankAccountResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<create_member_bank_account_response::Result>,
}
/// Nested message and enum types in `CreateMemberBankAccountResponse`.
pub mod create_member_bank_account_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_bank_account:
::core::option::Option<crate::models::member_bank_account::MemberBankAccount>,
}
}
/// subject = bet.beteran.ss.member_bank_account.ListMemberBankAccounts
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMemberBankAccountsRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<list_member_bank_accounts_request::Request>,
}
/// Nested message and enum types in `ListMemberBankAccountsRequest`.
pub mod list_member_bank_accounts_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
#[prost(message, optional, tag = "1")]
pub pagination: ::core::option::Option<crate::protobuf::pagination::Pagination>,
#[prost(message, repeated, tag = "2")]
pub sorts: ::prost::alloc::vec::Vec<crate::protobuf::pagination::Sort>,
#[prost(message, optional, tag = "3")]
pub search: ::core::option::Option<request::Search>,
}
/// 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>,
#[prost(string, optional, tag = "2")]
pub bank_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "3")]
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(string, optional, tag = "5")]
pub memo_like: ::core::option::Option<::prost::alloc::string::String>,
}
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMemberBankAccountsResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<list_member_bank_accounts_response::Result>,
}
/// Nested message and enum types in `ListMemberBankAccountsResponse`.
pub mod list_member_bank_accounts_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(uint64, tag = "1")]
pub total_count: u64,
#[prost(message, repeated, tag = "2")]
pub member_bank_accounts:
::prost::alloc::vec::Vec<crate::models::member_bank_account::MemberBankAccount>,
}
}
/// subject = bet.beteran.ss.member_bank_account.GetMemberBankAccount
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberBankAccountRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<get_member_bank_account_request::Request>,
}
/// Nested message and enum types in `GetMemberBankAccountRequest`.
pub mod get_member_bank_account_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 GetMemberBankAccountResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<get_member_bank_account_response::Result>,
}
/// Nested message and enum types in `GetMemberBankAccountResponse`.
pub mod get_member_bank_account_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_bank_account:
::core::option::Option<crate::models::member_bank_account::MemberBankAccount>,
}
}
/// subject = bet.beteran.ss.member_bank_account.UpdateMemberBankAccount
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberBankAccountRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<update_member_bank_account_request::Request>,
}
/// Nested message and enum types in `UpdateMemberBankAccountRequest`.
pub mod update_member_bank_account_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub bank_id: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub account_number: ::prost::alloc::string::String,
#[prost(string, optional, tag = "5")]
pub memo: ::core::option::Option<::prost::alloc::string::String>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberBankAccountResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<update_member_bank_account_response::Result>,
}
/// Nested message and enum types in `UpdateMemberBankAccountResponse`.
pub mod update_member_bank_account_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_bank_account:
::core::option::Option<crate::models::member_bank_account::MemberBankAccount>,
}
}
/// subject = bet.beteran.ss.member_bank_account.UpdateMemberBankAccountForExchangePassword
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberBankAccountForExchangePasswordRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request:
::core::option::Option<update_member_bank_account_for_exchange_password_request::Request>,
}
/// Nested message and enum types in `UpdateMemberBankAccountForExchangePasswordRequest`.
pub mod update_member_bank_account_for_exchange_password_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub exchange_password: ::prost::alloc::string::String,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberBankAccountForExchangePasswordResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result:
::core::option::Option<update_member_bank_account_for_exchange_password_response::Result>,
}
/// Nested message and enum types in `UpdateMemberBankAccountForExchangePasswordResponse`.
pub mod update_member_bank_account_for_exchange_password_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {}
}
/// subject = bet.beteran.ss.member_bank_account.DeleteMemberBankAccount
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteMemberBankAccountRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<delete_member_bank_account_request::Request>,
}
/// Nested message and enum types in `DeleteMemberBankAccountRequest`.
pub mod delete_member_bank_account_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 DeleteMemberBankAccountResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<delete_member_bank_account_response::Result>,
}
/// Nested message and enum types in `DeleteMemberBankAccountResponse`.
pub mod delete_member_bank_account_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {}
}

View File

@ -0,0 +1,267 @@
const SUBJECT: &str = "bet.beteran.ss.member_bank_deposit";
const EVENT_SUBJECT: &str = "bet.beteran.ss_event.member_bank_deposit";
pub const SUBJECT_CREATE_MEMBER_BANK_DEPOSIT: &str =
const_format::concatcp!(SUBJECT, ".CreateMemberBankDeposit");
pub const SUBJECT_LIST_MEMBER_BANK_DEPOSITS: &str =
const_format::concatcp!(SUBJECT, ".ListMemberBankDeposits");
pub const SUBJECT_GET_MEMBER_BANK_DEPOSIT: &str =
const_format::concatcp!(SUBJECT, ".GetMemberBankDeposit");
pub const SUBJECT_UPDATE_MEMBER_BANK_DEPOSIT: &str =
const_format::concatcp!(SUBJECT, ".UpdateMemberBankDeposit");
pub const SUBJECT_UPDATE_MEMBER_BANK_DEPOSIT_FOR_STATE: &str =
const_format::concatcp!(SUBJECT, ".UpdateMemberBankDepositForState");
pub const SUBJECT_DELETE_MEMBER_BANK_DEPOSIT: &str =
const_format::concatcp!(SUBJECT, ".DeleteMemberBankDeposit");
pub const EVENT_SUBJECT_AFTER_UPDATE_MEMBER_BANK_DEPOSIT_FOR_STATE: &str =
const_format::concatcp!(EVENT_SUBJECT, ".AfterUpdateMemberBankDepositForState");
/// subject = bet.beteran.ss.member_bank_deposit.CreateMemberBankDeposit
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateMemberBankDepositRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<create_member_bank_deposit_request::Request>,
}
/// Nested message and enum types in `CreateMemberBankDepositRequest`.
pub mod create_member_bank_deposit_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
#[prost(string, tag = "1")]
pub member_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
#[prost(double, tag = "3")]
pub amount: f64,
#[prost(string, optional, tag = "4")]
pub memo: ::core::option::Option<::prost::alloc::string::String>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateMemberBankDepositResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<create_member_bank_deposit_response::Result>,
}
/// Nested message and enum types in `CreateMemberBankDepositResponse`.
pub mod create_member_bank_deposit_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_bank_deposit:
::core::option::Option<crate::models::member_bank_deposit::MemberBankDepositModel>,
}
}
/// subject = bet.beteran.ss.member_bank_deposit.ListMemberBankDeposits
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMemberBankDepositsRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<list_member_bank_deposits_request::Request>,
}
/// Nested message and enum types in `ListMemberBankDepositsRequest`.
pub mod list_member_bank_deposits_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
#[prost(message, optional, tag = "1")]
pub pagination: ::core::option::Option<crate::protobuf::pagination::Pagination>,
#[prost(message, repeated, tag = "2")]
pub sorts: ::prost::alloc::vec::Vec<crate::protobuf::pagination::Sort>,
#[prost(message, optional, tag = "3")]
pub search: ::core::option::Option<request::Search>,
}
/// 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>,
#[prost(string, optional, tag = "2")]
pub name_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(double, optional, tag = "3")]
pub amount: ::core::option::Option<f64>,
#[prost(string, optional, tag = "4")]
pub memo_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(
enumeration = "crate::models::member_bank_deposit::MemberBankDepositState",
optional,
tag = "5"
)]
pub state: ::core::option::Option<i32>,
}
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMemberBankDepositsResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<list_member_bank_deposits_response::Result>,
}
/// Nested message and enum types in `ListMemberBankDepositsResponse`.
pub mod list_member_bank_deposits_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(uint64, tag = "1")]
pub total_count: u64,
#[prost(message, repeated, tag = "2")]
pub member_bank_deposits:
::prost::alloc::vec::Vec<crate::models::member_bank_deposit::MemberBankDepositModel>,
}
}
/// subject = bet.beteran.ss.member_bank_deposit.GetMemberBankDeposit
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberBankDepositRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<get_member_bank_deposit_request::Request>,
}
/// Nested message and enum types in `GetMemberBankDepositRequest`.
pub mod get_member_bank_deposit_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 GetMemberBankDepositResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<get_member_bank_deposit_response::Result>,
}
/// Nested message and enum types in `GetMemberBankDepositResponse`.
pub mod get_member_bank_deposit_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_bank_deposit:
::core::option::Option<crate::models::member_bank_deposit::MemberBankDepositModel>,
}
}
/// subject = bet.beteran.ss.member_bank_deposit.UpdateMemberBankDeposit
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberBankDepositRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<update_member_bank_deposit_request::Request>,
}
/// Nested message and enum types in `UpdateMemberBankDepositRequest`.
pub mod update_member_bank_deposit_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub name: ::prost::alloc::string::String,
#[prost(double, tag = "5")]
pub amount: f64,
#[prost(string, optional, tag = "7")]
pub memo: ::core::option::Option<::prost::alloc::string::String>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberBankDepositResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<update_member_bank_deposit_response::Result>,
}
/// Nested message and enum types in `UpdateMemberBankDepositResponse`.
pub mod update_member_bank_deposit_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_bank_deposit:
::core::option::Option<crate::models::member_bank_deposit::MemberBankDepositModel>,
}
}
/// subject = bet.beteran.ss.member_bank_deposit.UpdateMemberBankDepositForState
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberBankDepositForStateRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<update_member_bank_deposit_for_state_request::Request>,
}
/// Nested message and enum types in `UpdateMemberBankDepositForStateRequest`.
pub mod update_member_bank_deposit_for_state_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(
enumeration = "crate::models::member_bank_deposit::MemberBankDepositState",
tag = "2"
)]
pub state: i32,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberBankDepositForStateResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<update_member_bank_deposit_for_state_response::Result>,
}
/// Nested message and enum types in `UpdateMemberBankDepositForStateResponse`.
pub mod update_member_bank_deposit_for_state_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_bank_deposit:
::core::option::Option<crate::models::member_bank_deposit::MemberBankDepositModel>,
}
}
/// subject = bet.beteran.ss.member_bank_deposit.DeleteMemberBankDeposit
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteMemberBankDepositRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<delete_member_bank_deposit_request::Request>,
}
/// Nested message and enum types in `DeleteMemberBankDepositRequest`.
pub mod delete_member_bank_deposit_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 DeleteMemberBankDepositResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<delete_member_bank_deposit_response::Result>,
}
/// Nested message and enum types in `DeleteMemberBankDepositResponse`.
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 {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub event: ::core::option::Option<after_update_member_bank_deposit_for_state::Event>,
}
/// Nested message and enum types in `AfterUpdateMemberBankDepositForState`.
pub mod after_update_member_bank_deposit_for_state {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Event {
#[prost(message, optional, tag = "1")]
pub member_bank_deposit:
::core::option::Option<crate::models::member_bank_deposit::MemberBankDepositModel>,
}
}

View File

@ -0,0 +1,283 @@
const SUBJECT: &str = "bet.beteran.ss.member_bank_withdraw";
const EVENT_SUBJECT: &str = "bet.beteran.ss_event.member_bank_withdraw";
pub const SUBJECT_CREATE_MEMBER_BANK_WITHDRAW: &str =
const_format::concatcp!(SUBJECT, ".CreateMemberBankWithdraw");
pub const SUBJECT_LIST_MEMBER_BANK_WITHDRAWS: &str =
const_format::concatcp!(SUBJECT, ".ListMemberBankWithdraws");
pub const SUBJECT_GET_MEMBER_BANK_WITHDRAW: &str =
const_format::concatcp!(SUBJECT, ".GetMemberBankWithdraw");
pub const SUBJECT_UPDATE_MEMBER_BANK_WITHDRAW: &str =
const_format::concatcp!(SUBJECT, ".UpdateMemberBankWithdraw");
pub const SUBJECT_UPDATE_MEMBER_BANK_WITHDRAW_FOR_STATE: &str =
const_format::concatcp!(SUBJECT, ".UpdateMemberBankWithdrawForState");
pub const SUBJECT_DELETE_MEMBER_BANK_WITHDRAW: &str =
const_format::concatcp!(SUBJECT, ".DeleteMemberBankWithdraw");
pub const EVENT_SUBJECT_AFTER_UPDATE_MEMBER_BANK_WITHDRAW_FOR_STATE: &str =
const_format::concatcp!(EVENT_SUBJECT, ".AfterUpdateMemberBankWithdrawForState");
/// subject = bet.beteran.ss.member_bank_withdraw.CreateMemberBankWithdraw
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateMemberBankWithdrawRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<create_member_bank_withdraw_request::Request>,
}
/// Nested message and enum types in `CreateMemberBankWithdrawRequest`.
pub mod create_member_bank_withdraw_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
#[prost(string, tag = "1")]
pub member_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub bank_name: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub account_number: ::prost::alloc::string::String,
#[prost(double, tag = "5")]
pub amount: f64,
#[prost(string, tag = "6")]
pub password: ::prost::alloc::string::String,
#[prost(string, optional, tag = "7")]
pub memo: ::core::option::Option<::prost::alloc::string::String>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateMemberBankWithdrawResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<create_member_bank_withdraw_response::Result>,
}
/// Nested message and enum types in `CreateMemberBankWithdrawResponse`.
pub mod create_member_bank_withdraw_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_bank_withdraw:
::core::option::Option<crate::models::member_bank_withdraw::MemberBankWithdrawModel>,
}
}
/// subject = bet.beteran.ss.member_bank_withdraw.ListMemberBankWithdraws
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMemberBankWithdrawsRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<list_member_bank_withdraws_request::Request>,
}
/// Nested message and enum types in `ListMemberBankWithdrawsRequest`.
pub mod list_member_bank_withdraws_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
#[prost(message, optional, tag = "1")]
pub pagination: ::core::option::Option<crate::protobuf::pagination::Pagination>,
#[prost(message, repeated, tag = "2")]
pub sorts: ::prost::alloc::vec::Vec<crate::protobuf::pagination::Sort>,
#[prost(message, optional, tag = "3")]
pub search: ::core::option::Option<request::Search>,
}
/// 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>,
#[prost(string, optional, tag = "2")]
pub bank_name_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "3")]
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(double, optional, tag = "5")]
pub amount: ::core::option::Option<f64>,
#[prost(string, optional, tag = "6")]
pub memo_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(
enumeration = "crate::models::member_bank_withdraw::MemberBankWithdrawState",
optional,
tag = "7"
)]
pub state: ::core::option::Option<i32>,
}
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMemberBankWithdrawsResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<list_member_bank_withdraws_response::Result>,
}
/// Nested message and enum types in `ListMemberBankWithdrawsResponse`.
pub mod list_member_bank_withdraws_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(uint64, tag = "1")]
pub total_count: u64,
#[prost(message, repeated, tag = "2")]
pub member_bank_withdraws:
::prost::alloc::vec::Vec<crate::models::member_bank_withdraw::MemberBankWithdrawModel>,
}
}
/// subject = bet.beteran.ss.member_bank_withdraw.GetMemberBankWithdraw
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberBankWithdrawRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<get_member_bank_withdraw_request::Request>,
}
/// Nested message and enum types in `GetMemberBankWithdrawRequest`.
pub mod get_member_bank_withdraw_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 GetMemberBankWithdrawResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<get_member_bank_withdraw_response::Result>,
}
/// Nested message and enum types in `GetMemberBankWithdrawResponse`.
pub mod get_member_bank_withdraw_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_bank_withdraw:
::core::option::Option<crate::models::member_bank_withdraw::MemberBankWithdrawModel>,
}
}
/// subject = bet.beteran.ss.member_bank_withdraw.UpdateMemberBankWithdraw
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberBankWithdrawRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<update_member_bank_withdraw_request::Request>,
}
/// Nested message and enum types in `UpdateMemberBankWithdrawRequest`.
pub mod update_member_bank_withdraw_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub bank_name: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub account_number: ::prost::alloc::string::String,
#[prost(double, tag = "5")]
pub amount: f64,
#[prost(string, tag = "6")]
pub password: ::prost::alloc::string::String,
#[prost(string, optional, tag = "7")]
pub memo: ::core::option::Option<::prost::alloc::string::String>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberBankWithdrawResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<update_member_bank_withdraw_response::Result>,
}
/// Nested message and enum types in `UpdateMemberBankWithdrawResponse`.
pub mod update_member_bank_withdraw_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_bank_withdraw:
::core::option::Option<crate::models::member_bank_withdraw::MemberBankWithdrawModel>,
}
}
/// subject = bet.beteran.ss.member_bank_withdraw.UpdateMemberBankWithdrawForState
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberBankWithdrawForStateRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<update_member_bank_withdraw_for_state_request::Request>,
}
/// Nested message and enum types in `UpdateMemberBankWithdrawForStateRequest`.
pub mod update_member_bank_withdraw_for_state_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(
enumeration = "crate::models::member_bank_withdraw::MemberBankWithdrawState",
tag = "2"
)]
pub state: i32,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberBankWithdrawForStateResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<update_member_bank_withdraw_for_state_response::Result>,
}
/// Nested message and enum types in `UpdateMemberBankWithdrawForStateResponse`.
pub mod update_member_bank_withdraw_for_state_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_bank_withdraw:
::core::option::Option<crate::models::member_bank_withdraw::MemberBankWithdrawModel>,
}
}
/// subject = bet.beteran.ss.member_bank_withdraw.DeleteMemberBankWithdraw
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteMemberBankWithdrawRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<delete_member_bank_withdraw_request::Request>,
}
/// Nested message and enum types in `DeleteMemberBankWithdrawRequest`.
pub mod delete_member_bank_withdraw_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 DeleteMemberBankWithdrawResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<delete_member_bank_withdraw_response::Result>,
}
/// Nested message and enum types in `DeleteMemberBankWithdrawResponse`.
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 {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub event: ::core::option::Option<after_update_member_bank_withdraw_for_state::Event>,
}
/// Nested message and enum types in `AfterUpdateMemberBankWithdrawForState`.
pub mod after_update_member_bank_withdraw_for_state {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Event {
#[prost(message, optional, tag = "1")]
pub member_bank_withdraw:
::core::option::Option<crate::models::member_bank_withdraw::MemberBankWithdrawModel>,
}
}

190
src/ss/member_class.rs Normal file
View File

@ -0,0 +1,190 @@
const SUBJECT: &str = "bet.beteran.ss.member_class";
pub const SUBJECT_CREATE_MEMBER_CLASS: &str =
const_format::concatcp!(SUBJECT, ".CreateMemberClass");
pub const SUBJECT_LIST_MEMBER_CLASSES: &str =
const_format::concatcp!(SUBJECT, ".ListMemberClasses");
pub const SUBJECT_GET_MEMBER_CLASS: &str = const_format::concatcp!(SUBJECT, ".GetMemberClass");
pub const SUBJECT_UPDATE_MEMBER_CLASS: &str =
const_format::concatcp!(SUBJECT, ".UpdateMemberClass");
pub const SUBJECT_DELETE_MEMBER_CLASS: &str =
const_format::concatcp!(SUBJECT, ".DeleteMemberClass");
/// subject = bet.beteran.ss.member_class.CreateMemberClass
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateMemberClassRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<create_member_class_request::Request>,
}
/// Nested message and enum types in `CreateMemberClassRequest`.
pub mod create_member_class_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
#[prost(string, optional, tag = "1")]
pub parent_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
#[prost(bool, tag = "3")]
pub show: bool,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateMemberClassResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<create_member_class_response::Result>,
}
/// Nested message and enum types in `CreateMemberClassResponse`.
pub mod create_member_class_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_class: ::core::option::Option<crate::models::member_class::MemberClass>,
}
}
/// subject = bet.beteran.ss.member_class.ListMemberClasses
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMemberClassesRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<list_member_classes_request::Request>,
}
/// Nested message and enum types in `ListMemberClassesRequest`.
pub mod list_member_classes_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
#[prost(message, optional, tag = "1")]
pub pagination: ::core::option::Option<crate::protobuf::pagination::Pagination>,
#[prost(message, repeated, tag = "2")]
pub sorts: ::prost::alloc::vec::Vec<crate::protobuf::pagination::Sort>,
#[prost(message, optional, tag = "3")]
pub search: ::core::option::Option<request::Search>,
}
/// Nested message and enum types in `Request`.
pub mod request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Search {
#[prost(string, optional, tag = "1")]
pub name_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(bool, optional, tag = "2")]
pub show: ::core::option::Option<bool>,
}
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMemberClassesResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<list_member_classes_response::Result>,
}
/// Nested message and enum types in `ListMemberClassesResponse`.
pub mod list_member_classes_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(uint64, tag = "1")]
pub total_count: u64,
#[prost(message, repeated, tag = "2")]
pub member_classes: ::prost::alloc::vec::Vec<crate::models::member_class::MemberClass>,
}
}
/// subject = bet.beteran.ss.member_class.GetMemberClass
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberClassRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<get_member_class_request::Request>,
}
/// Nested message and enum types in `GetMemberClassRequest`.
pub mod get_member_class_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 GetMemberClassResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<get_member_class_response::Result>,
}
/// Nested message and enum types in `GetMemberClassResponse`.
pub mod get_member_class_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_class: ::core::option::Option<crate::models::member_class::MemberClass>,
}
}
/// subject = bet.beteran.ss.member_class.UpdateMemberClass
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberClassRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<update_member_class_request::Request>,
}
/// Nested message and enum types in `UpdateMemberClassRequest`.
pub mod update_member_class_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, optional, tag = "2")]
pub parent_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, tag = "3")]
pub name: ::prost::alloc::string::String,
#[prost(bool, tag = "4")]
pub show: bool,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberClassResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<update_member_class_response::Result>,
}
/// Nested message and enum types in `UpdateMemberClassResponse`.
pub mod update_member_class_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_class: ::core::option::Option<crate::models::member_class::MemberClass>,
}
}
/// subject = bet.beteran.ss.member_class.DeleteMemberClass
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteMemberClassRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<delete_member_class_request::Request>,
}
/// Nested message and enum types in `DeleteMemberClassRequest`.
pub mod delete_member_class_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 DeleteMemberClassResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<delete_member_class_response::Result>,
}
/// Nested message and enum types in `DeleteMemberClassResponse`.
pub mod delete_member_class_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {}
}

View File

@ -0,0 +1,207 @@
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<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<create_member_game_setting_request::Request>,
}
/// 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,
#[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 CreateMemberGameSettingResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<create_member_game_setting_response::Result>,
}
/// 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<crate::models::member_game_setting::MemberGameSetting>,
}
}
/// 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<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<list_member_game_settings_request::Request>,
}
/// 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<crate::protobuf::pagination::Pagination>,
#[prost(message, repeated, tag = "2")]
pub sorts: ::prost::alloc::vec::Vec<crate::protobuf::pagination::Sort>,
#[prost(message, optional, tag = "3")]
pub search: ::core::option::Option<request::Search>,
}
/// 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<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<list_member_game_settings_response::Result>,
}
/// Nested message and enum types in `ListMemberGameSettingsResponse`.
pub mod list_member_game_settings_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(uint64, tag = "1")]
pub total_count: u64,
#[prost(message, repeated, tag = "2")]
pub member_game_settings:
::prost::alloc::vec::Vec<crate::models::member_game_setting::MemberGameSetting>,
}
}
/// 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<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<get_member_game_setting_request::Request>,
}
/// 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<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<get_member_game_setting_response::Result>,
}
/// 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<crate::models::member_game_setting::MemberGameSetting>,
}
}
/// 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<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<update_member_game_setting_request::Request>,
}
/// 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<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<update_member_game_setting_response::Result>,
}
/// 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<crate::models::member_game_setting::MemberGameSetting>,
}
}
/// 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<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<delete_member_game_setting_request::Request>,
}
/// 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<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<delete_member_game_setting_response::Result>,
}
/// Nested message and enum types in `DeleteMemberGameSettingResponse`.
pub mod delete_member_game_setting_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {}
}

189
src/ss/member_level.rs Normal file
View File

@ -0,0 +1,189 @@
const SUBJECT: &str = "bet.beteran.ss.member_level";
pub const SUBJECT_CREATE_MEMBER_LEVEL: &str =
const_format::concatcp!(SUBJECT, ".CreateMemberLevel");
pub const SUBJECT_LIST_MEMBER_LEVELS: &str = const_format::concatcp!(SUBJECT, ".ListMemberLevels");
pub const SUBJECT_GET_MEMBER_LEVEL: &str = const_format::concatcp!(SUBJECT, ".GetMemberLevel");
pub const SUBJECT_UPDATE_MEMBER_LEVEL: &str =
const_format::concatcp!(SUBJECT, ".UpdateMemberLevel");
pub const SUBJECT_DELETE_MEMBER_LEVEL: &str =
const_format::concatcp!(SUBJECT, ".DeleteMemberLevel");
/// subject = bet.beteran.ss.member_level.CreateMemberLevel
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateMemberLevelRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<create_member_level_request::Request>,
}
/// Nested message and enum types in `CreateMemberLevelRequest`.
pub mod create_member_level_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(bool, tag = "2")]
pub show: bool,
#[prost(uint32, tag = "3")]
pub sort_order: u32,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateMemberLevelResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<create_member_level_response::Result>,
}
/// Nested message and enum types in `CreateMemberLevelResponse`.
pub mod create_member_level_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_level: ::core::option::Option<crate::models::member_level::MemberLevel>,
}
}
/// subject = bet.beteran.ss.member_level.ListMemberLevels
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMemberLevelsRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<list_member_levels_request::Request>,
}
/// Nested message and enum types in `ListMemberLevelsRequest`.
pub mod list_member_levels_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
#[prost(message, optional, tag = "1")]
pub pagination: ::core::option::Option<crate::protobuf::pagination::Pagination>,
#[prost(message, repeated, tag = "2")]
pub sorts: ::prost::alloc::vec::Vec<crate::protobuf::pagination::Sort>,
#[prost(message, optional, tag = "3")]
pub search: ::core::option::Option<request::Search>,
}
/// Nested message and enum types in `Request`.
pub mod request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Search {
#[prost(string, optional, tag = "1")]
pub name_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(bool, optional, tag = "2")]
pub show: ::core::option::Option<bool>,
}
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMemberLevelsResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<list_member_levels_response::Result>,
}
/// Nested message and enum types in `ListMemberLevelsResponse`.
pub mod list_member_levels_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(uint64, tag = "1")]
pub total_count: u64,
#[prost(message, repeated, tag = "2")]
pub member_levels: ::prost::alloc::vec::Vec<crate::models::member_level::MemberLevel>,
}
}
/// subject = bet.beteran.ss.member_level.GetMemberLevel
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberLevelRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<get_member_level_request::Request>,
}
/// Nested message and enum types in `GetMemberLevelRequest`.
pub mod get_member_level_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 GetMemberLevelResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<get_member_level_response::Result>,
}
/// Nested message and enum types in `GetMemberLevelResponse`.
pub mod get_member_level_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_level: ::core::option::Option<crate::models::member_level::MemberLevel>,
}
}
/// subject = bet.beteran.ss.member_level.UpdateMemberLevel
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberLevelRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<update_member_level_request::Request>,
}
/// Nested message and enum types in `UpdateMemberLevelRequest`.
pub mod update_member_level_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
#[prost(bool, tag = "3")]
pub show: bool,
#[prost(uint32, tag = "4")]
pub sort_order: u32,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberLevelResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<update_member_level_response::Result>,
}
/// Nested message and enum types in `UpdateMemberLevelResponse`.
pub mod update_member_level_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member_level: ::core::option::Option<crate::models::member_level::MemberLevel>,
}
}
/// subject = bet.beteran.ss.member_level.DeleteMemberLevel
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteMemberLevelRequest {
#[prost(message, optional, tag = "1")]
pub client: ::core::option::Option<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<delete_member_level_request::Request>,
}
/// Nested message and enum types in `DeleteMemberLevelRequest`.
pub mod delete_member_level_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 DeleteMemberLevelResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<delete_member_level_response::Result>,
}
/// Nested message and enum types in `DeleteMemberLevelResponse`.
pub mod delete_member_level_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {}
}

Some files were not shown because too many files have changed in this diff Show More