diff --git a/src/c2se/api/game.rs b/src/c2se/api/game.rs new file mode 100644 index 0000000..f6785ed --- /dev/null +++ b/src/c2se/api/game.rs @@ -0,0 +1,40 @@ +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListGamesRequest { + #[prost(message, optional, tag = "1")] + pub pagination: ::core::option::Option, + #[prost(message, repeated, tag = "2")] + pub sorts: ::prost::alloc::vec::Vec, + #[prost(message, optional, tag = "3")] + pub search: ::core::option::Option, +} +/// Nested message and enum types in `ListGamesRequest`. +pub mod list_games_request { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Search { + #[prost(uint64, optional, tag = "1")] + pub vendor_id: ::core::option::Option, + #[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, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// Nested message and enum types in `ListGamesResponse`. +pub mod list_games_response { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, repeated, tag = "1")] + pub games: ::prost::alloc::vec::Vec, + } +} diff --git a/src/c2se/api/mod.rs b/src/c2se/api/mod.rs index 1384ca2..fd2b58f 100644 --- a/src/c2se/api/mod.rs +++ b/src/c2se/api/mod.rs @@ -1 +1,2 @@ +pub mod game; pub mod vendor; diff --git a/src/c2se/backend/api/game.rs b/src/c2se/backend/api/game.rs new file mode 100644 index 0000000..e8e819b --- /dev/null +++ b/src/c2se/backend/api/game.rs @@ -0,0 +1,3 @@ +const SUBJECT: &str = "bet.beteran.c2se.backend.api.game"; + +pub const SUBJECT_LIST_GAMES: &str = const_format::concatcp!(SUBJECT, ".ListGames"); diff --git a/src/c2se/backend/api/mod.rs b/src/c2se/backend/api/mod.rs index 1384ca2..fd2b58f 100644 --- a/src/c2se/backend/api/mod.rs +++ b/src/c2se/backend/api/mod.rs @@ -1 +1,2 @@ +pub mod game; pub mod vendor; diff --git a/src/c2se/backend/member.rs b/src/c2se/backend/member.rs index b560eb8..5f6ec65 100644 --- a/src/c2se/backend/member.rs +++ b/src/c2se/backend/member.rs @@ -6,4 +6,6 @@ pub const SUBJECT_GET_MEMBER: &str = const_format::concatcp!(SUBJECT, ".GetMembe 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_STATE: &str = + const_format::concatcp!(SUBJECT, ".UpdateMemberForState"); pub const SUBJECT_DELETE_MEMBER: &str = const_format::concatcp!(SUBJECT, ".DeleteMember"); diff --git a/src/c2se/backend/member_referrer.rs b/src/c2se/backend/member_referrer.rs new file mode 100644 index 0000000..b16c291 --- /dev/null +++ b/src/c2se/backend/member_referrer.rs @@ -0,0 +1,12 @@ +const SUBJECT: &str = "bet.beteran.c2se.backend.member_referrer"; + +pub const SUBJECT_CREATE_MEMBER_REFERRER: &str = + const_format::concatcp!(SUBJECT, ".CreateMemberReferrer"); +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_UPDATE_MEMBER_REFERRER: &str = + const_format::concatcp!(SUBJECT, ".UpdateMemberReferrer"); +pub const SUBJECT_DELETE_MEMBER_REFERRER: &str = + const_format::concatcp!(SUBJECT, ".DeleteMemberReferrer"); diff --git a/src/c2se/backend/mod.rs b/src/c2se/backend/mod.rs index f26d31e..e0aa012 100644 --- a/src/c2se/backend/mod.rs +++ b/src/c2se/backend/mod.rs @@ -7,4 +7,5 @@ pub mod member_bank_deposit; pub mod member_bank_withdraw; pub mod member_class; pub mod member_level; +pub mod member_referrer; pub mod site; diff --git a/src/c2se/member.rs b/src/c2se/member.rs index d786ad0..8938867 100644 --- a/src/c2se/member.rs +++ b/src/c2se/member.rs @@ -68,7 +68,7 @@ pub mod list_members_request { #[prost(string, optional, tag = "3")] pub member_level_id: ::core::option::Option<::prost::alloc::string::String>, #[prost(string, optional, tag = "4")] - pub referrer_member_id: ::core::option::Option<::prost::alloc::string::String>, + pub parent_member_id: ::core::option::Option<::prost::alloc::string::String>, #[prost(string, optional, tag = "5")] pub username_like: ::core::option::Option<::prost::alloc::string::String>, #[prost(string, optional, tag = "6")] diff --git a/src/c2se/member_referrer.rs b/src/c2se/member_referrer.rs new file mode 100644 index 0000000..dd484b5 --- /dev/null +++ b/src/c2se/member_referrer.rs @@ -0,0 +1,120 @@ +#[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, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// 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, + } +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListMemberReferrersRequest { + #[prost(message, optional, tag = "1")] + pub pagination: ::core::option::Option, + #[prost(message, repeated, tag = "2")] + pub sorts: ::prost::alloc::vec::Vec, + #[prost(message, optional, tag = "3")] + pub search: ::core::option::Option, +} +/// Nested message and enum types in `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, + #[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, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// Nested message and enum types in `ListMemberReferrersResponse`. +pub mod list_member_referrers_response { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, repeated, tag = "1")] + pub member_referrers: + ::prost::alloc::vec::Vec, + } +} +#[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, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// 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, + } +} +#[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, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// 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, + } +} +#[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, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// Nested message and enum types in `DeleteMemberReferrerResponse`. +pub mod delete_member_referrer_response { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result {} +} diff --git a/src/c2se/mod.rs b/src/c2se/mod.rs index 2783705..0391a2c 100644 --- a/src/c2se/mod.rs +++ b/src/c2se/mod.rs @@ -10,4 +10,5 @@ pub mod member_bank_deposit; pub mod member_bank_withdraw; pub mod member_class; pub mod member_level; +pub mod member_referrer; pub mod site; diff --git a/src/models/api/game.rs b/src/models/api/game.rs new file mode 100644 index 0000000..802901a --- /dev/null +++ b/src/models/api/game.rs @@ -0,0 +1,23 @@ +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Game { + #[prost(uint64, tag = "1")] + pub id: u64, + #[prost(uint64, tag = "2")] + pub vendor_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, +} diff --git a/src/models/api/mod.rs b/src/models/api/mod.rs index 1384ca2..fd2b58f 100644 --- a/src/models/api/mod.rs +++ b/src/models/api/mod.rs @@ -1 +1,2 @@ +pub mod game; pub mod vendor; diff --git a/src/models/member.rs b/src/models/member.rs index 42cebdb..a5ecdcf 100644 --- a/src/models/member.rs +++ b/src/models/member.rs @@ -9,9 +9,9 @@ pub struct Member { #[prost(string, tag = "4")] pub member_level_id: ::prost::alloc::string::String, #[prost(string, optional, tag = "5")] - pub referrer_member_id: ::core::option::Option<::prost::alloc::string::String>, + pub parent_member_id: ::core::option::Option<::prost::alloc::string::String>, #[prost(uint64, tag = "6")] - pub referred_count: u64, + pub child_member_count: u64, #[prost(string, tag = "7")] pub username: ::prost::alloc::string::String, #[prost(string, tag = "8")] @@ -38,18 +38,17 @@ pub struct MemberModel { #[prost(string, tag = "1")] pub id: ::prost::alloc::string::String, #[prost(message, optional, tag = "2")] - pub site: ::core::option::Option, + pub site: ::core::option::Option, #[prost(message, optional, tag = "3")] - pub member_class: ::core::option::Option, + pub member_class: ::core::option::Option, #[prost(message, optional, tag = "4")] - pub member_level: ::core::option::Option, + pub member_level: ::core::option::Option, #[prost(message, optional, tag = "5")] - pub bank_account: - ::core::option::Option, + pub bank_account: ::core::option::Option, #[prost(message, optional, tag = "6")] - pub referrer_member: ::core::option::Option, + pub parent_member: ::core::option::Option, #[prost(uint64, tag = "7")] - pub referred_count: u64, + pub child_member_count: u64, #[prost(string, tag = "8")] pub username: ::prost::alloc::string::String, #[prost(string, tag = "9")] diff --git a/src/models/member_referrer.rs b/src/models/member_referrer.rs new file mode 100644 index 0000000..f42a56b --- /dev/null +++ b/src/models/member_referrer.rs @@ -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, + #[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, +} diff --git a/src/models/mod.rs b/src/models/mod.rs index df028e5..3f5bedf 100644 --- a/src/models/mod.rs +++ b/src/models/mod.rs @@ -8,6 +8,7 @@ pub mod member_bank_withdraw; pub mod member_class; pub mod member_level; pub mod member_permission; +pub mod member_referrer; pub mod member_role; pub mod member_session; pub mod resource; diff --git a/src/ss/api/game.rs b/src/ss/api/game.rs new file mode 100644 index 0000000..fd384b8 --- /dev/null +++ b/src/ss/api/game.rs @@ -0,0 +1,55 @@ +const SUBJECT: &str = "bet.beteran.ss.api.game"; + +pub const SUBJECT_LIST_GAMES: &str = const_format::concatcp!(SUBJECT, ".ListGames"); + +/// 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, + #[prost(message, optional, tag = "2")] + pub request: ::core::option::Option, +} +/// 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, + #[prost(message, repeated, tag = "2")] + pub sorts: ::prost::alloc::vec::Vec, + #[prost(message, optional, tag = "3")] + pub search: ::core::option::Option, + } + /// Nested message and enum types in `Request`. + pub mod request { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Search { + #[prost(uint64, optional, tag = "1")] + pub vendor_id: ::core::option::Option, + #[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, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// Nested message and enum types in `ListGamesResponse`. +pub mod list_games_response { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, repeated, tag = "1")] + pub games: ::prost::alloc::vec::Vec, + } +} diff --git a/src/ss/api/mod.rs b/src/ss/api/mod.rs index 1384ca2..fd2b58f 100644 --- a/src/ss/api/mod.rs +++ b/src/ss/api/mod.rs @@ -1 +1,2 @@ +pub mod game; pub mod vendor; diff --git a/src/ss/member.rs b/src/ss/member.rs index 10ccc86..25da692 100644 --- a/src/ss/member.rs +++ b/src/ss/member.rs @@ -109,7 +109,7 @@ pub mod list_members_request { #[prost(string, optional, tag = "3")] pub member_level_id: ::core::option::Option<::prost::alloc::string::String>, #[prost(string, optional, tag = "4")] - pub referrer_member_id: ::core::option::Option<::prost::alloc::string::String>, + pub parent_member_id: ::core::option::Option<::prost::alloc::string::String>, #[prost(string, optional, tag = "5")] pub username_like: ::core::option::Option<::prost::alloc::string::String>, #[prost(string, optional, tag = "6")] @@ -324,7 +324,6 @@ 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 { diff --git a/src/ss/member_referrer.rs b/src/ss/member_referrer.rs new file mode 100644 index 0000000..f8809d5 --- /dev/null +++ b/src/ss/member_referrer.rs @@ -0,0 +1,189 @@ +const SUBJECT: &str = "bet.beteran.ss.member_referrer"; +const EVENT_SUBJECT: &str = "bet.beteran.ss_event.member_referrer"; + +pub const SUBJECT_CREATE_MEMBER_REFERRER: &str = + const_format::concatcp!(SUBJECT, ".CreateMemberReferrer"); +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_UPDATE_MEMBER_REFERRER: &str = + const_format::concatcp!(SUBJECT, ".UpdateMemberReferrer"); +pub const SUBJECT_DELETE_MEMBER_REFERRER: &str = + const_format::concatcp!(SUBJECT, ".DeleteMemberReferrer"); + +/// subject = bet.beteran.ss.member_referrer.CreateMemberReferrer +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateMemberReferrerRequest { + #[prost(message, optional, tag = "1")] + pub client: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub request: ::core::option::Option, +} +/// Nested message and enum types in `CreateMemberReferrerRequest`. +pub mod create_member_referrer_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 CreateMemberReferrerResponse { + #[prost(message, optional, tag = "1")] + pub error: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// Nested message and enum types in `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, + } +} +/// subject = bet.beteran.ss.member_referrer.ListMemberReferrers +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListMemberReferrersRequest { + #[prost(message, optional, tag = "1")] + pub client: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub request: ::core::option::Option, +} +/// Nested message and enum types in `ListMemberReferrersRequest`. +pub mod list_member_referrers_request { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Request { + #[prost(message, optional, tag = "1")] + pub pagination: ::core::option::Option, + #[prost(message, repeated, tag = "2")] + pub sorts: ::prost::alloc::vec::Vec, + #[prost(message, optional, tag = "3")] + pub search: ::core::option::Option, + } + /// Nested message and enum types in `Request`. + pub mod request { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Search { + #[prost(string, optional, tag = "1")] + pub member_id: ::core::option::Option<::prost::alloc::string::String>, + #[prost(bool, optional, tag = "2")] + pub can_use: ::core::option::Option, + #[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, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// Nested message and enum types in `ListMemberReferrersResponse`. +pub mod list_member_referrers_response { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, repeated, tag = "1")] + pub member_referrers: + ::prost::alloc::vec::Vec, + } +} +/// subject = bet.beteran.ss.member_referrer.GetMemberReferrer +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetMemberReferrerRequest { + #[prost(message, optional, tag = "1")] + pub client: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub request: ::core::option::Option, +} +/// Nested message and enum types in `GetMemberReferrerRequest`. +pub mod get_member_referrer_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 GetMemberReferrerResponse { + #[prost(message, optional, tag = "1")] + pub error: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// Nested message and enum types in `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, + } +} +/// subject = bet.beteran.ss.member_referrer.UpdateMemberReferrer +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UpdateMemberReferrerRequest { + #[prost(message, optional, tag = "1")] + pub client: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub request: ::core::option::Option, +} +/// Nested message and enum types in `UpdateMemberReferrerRequest`. +pub mod update_member_referrer_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_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, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// 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, + } +} +/// subject = bet.beteran.ss.member_referrer.DeleteMemberReferrer +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DeleteMemberReferrerRequest { + #[prost(message, optional, tag = "1")] + pub client: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub request: ::core::option::Option, +} +/// Nested message and enum types in `DeleteMemberReferrerRequest`. +pub mod delete_member_referrer_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 DeleteMemberReferrerResponse { + #[prost(message, optional, tag = "1")] + pub error: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// Nested message and enum types in `DeleteMemberReferrerResponse`. +pub mod delete_member_referrer_response { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result {} +} diff --git a/src/ss/mod.rs b/src/ss/mod.rs index f26d31e..e0aa012 100644 --- a/src/ss/mod.rs +++ b/src/ss/mod.rs @@ -7,4 +7,5 @@ pub mod member_bank_deposit; pub mod member_bank_withdraw; pub mod member_class; pub mod member_level; +pub mod member_referrer; pub mod site;