models are modified
This commit is contained in:
parent
e64f68744a
commit
d6f72df7b1
40
src/c2se/api/game.rs
Normal file
40
src/c2se/api/game.rs
Normal file
|
@ -0,0 +1,40 @@
|
|||
#[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 vendor_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(message, repeated, tag = "1")]
|
||||
pub games: ::prost::alloc::vec::Vec<crate::models::api::game::Game>,
|
||||
}
|
||||
}
|
|
@ -1 +1,2 @@
|
|||
pub mod game;
|
||||
pub mod vendor;
|
||||
|
|
3
src/c2se/backend/api/game.rs
Normal file
3
src/c2se/backend/api/game.rs
Normal 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");
|
|
@ -1 +1,2 @@
|
|||
pub mod game;
|
||||
pub mod vendor;
|
||||
|
|
|
@ -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");
|
||||
|
|
12
src/c2se/backend/member_referrer.rs
Normal file
12
src/c2se/backend/member_referrer.rs
Normal file
|
@ -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");
|
|
@ -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;
|
||||
|
|
|
@ -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")]
|
||||
|
|
120
src/c2se/member_referrer.rs
Normal file
120
src/c2se/member_referrer.rs
Normal file
|
@ -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<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::MemberReferrer>,
|
||||
}
|
||||
}
|
||||
#[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(message, repeated, tag = "1")]
|
||||
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 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 {}
|
||||
}
|
|
@ -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;
|
||||
|
|
23
src/models/api/game.rs
Normal file
23
src/models/api/game.rs
Normal 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 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,
|
||||
}
|
|
@ -1 +1,2 @@
|
|||
pub mod game;
|
||||
pub mod vendor;
|
||||
|
|
|
@ -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<crate::models::site::Site>,
|
||||
pub site: ::core::option::Option<super::site::Site>,
|
||||
#[prost(message, optional, tag = "3")]
|
||||
pub member_class: ::core::option::Option<crate::models::member_class::MemberClass>,
|
||||
pub member_class: ::core::option::Option<super::member_class::MemberClass>,
|
||||
#[prost(message, optional, tag = "4")]
|
||||
pub member_level: ::core::option::Option<crate::models::member_level::MemberLevel>,
|
||||
pub member_level: ::core::option::Option<super::member_level::MemberLevel>,
|
||||
#[prost(message, optional, tag = "5")]
|
||||
pub bank_account:
|
||||
::core::option::Option<crate::models::member_bank_account::MemberBankAccountModel>,
|
||||
pub bank_account: ::core::option::Option<super::member_bank_account::MemberBankAccountModel>,
|
||||
#[prost(message, optional, tag = "6")]
|
||||
pub referrer_member: ::core::option::Option<Member>,
|
||||
pub parent_member: ::core::option::Option<Member>,
|
||||
#[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")]
|
||||
|
|
30
src/models/member_referrer.rs
Normal file
30
src/models/member_referrer.rs
Normal 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,
|
||||
}
|
|
@ -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;
|
||||
|
|
55
src/ss/api/game.rs
Normal file
55
src/ss/api/game.rs
Normal file
|
@ -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<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 vendor_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(message, repeated, tag = "1")]
|
||||
pub games: ::prost::alloc::vec::Vec<crate::models::api::game::Game>,
|
||||
}
|
||||
}
|
|
@ -1 +1,2 @@
|
|||
pub mod game;
|
||||
pub mod vendor;
|
||||
|
|
|
@ -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 {
|
||||
|
|
189
src/ss/member_referrer.rs
Normal file
189
src/ss/member_referrer.rs
Normal file
|
@ -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<crate::models::core::network::Client>,
|
||||
#[prost(message, optional, tag = "2")]
|
||||
pub request: ::core::option::Option<create_member_referrer_request::Request>,
|
||||
}
|
||||
/// 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<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::MemberReferrer>,
|
||||
}
|
||||
}
|
||||
/// 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<crate::models::core::network::Client>,
|
||||
#[prost(message, optional, tag = "2")]
|
||||
pub request: ::core::option::Option<list_member_referrers_request::Request>,
|
||||
}
|
||||
/// 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<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(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(message, repeated, tag = "1")]
|
||||
pub member_referrers:
|
||||
::prost::alloc::vec::Vec<crate::models::member_referrer::MemberReferrerModel>,
|
||||
}
|
||||
}
|
||||
/// 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<crate::models::core::network::Client>,
|
||||
#[prost(message, optional, tag = "2")]
|
||||
pub request: ::core::option::Option<get_member_referrer_request::Request>,
|
||||
}
|
||||
/// 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<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>,
|
||||
}
|
||||
}
|
||||
/// 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<crate::models::core::network::Client>,
|
||||
#[prost(message, optional, tag = "2")]
|
||||
pub request: ::core::option::Option<update_member_referrer_request::Request>,
|
||||
}
|
||||
/// 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<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>,
|
||||
}
|
||||
}
|
||||
/// 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<crate::models::core::network::Client>,
|
||||
#[prost(message, optional, tag = "2")]
|
||||
pub request: ::core::option::Option<delete_member_referrer_request::Request>,
|
||||
}
|
||||
/// 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<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 {}
|
||||
}
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user