From 88fd2237c6432c77177819a0eff5b2f3ac803da1 Mon Sep 17 00:00:00 2001 From: PARK BYUNG JUN Date: Sat, 20 Aug 2022 09:18:39 +0000 Subject: [PATCH] member_referrer is modified --- src/c2se/backend/member_referrer.rs | 6 ++ src/c2se/frontend/member_referrer.rs | 4 ++ src/c2se/frontend/mod.rs | 1 + src/c2se/member_referrer.rs | 59 +++++++++++++++++ src/ss/member_referrer.rs | 98 ++++++++++++++++++++++++++++ 5 files changed, 168 insertions(+) create mode 100644 src/c2se/frontend/member_referrer.rs diff --git a/src/c2se/backend/member_referrer.rs b/src/c2se/backend/member_referrer.rs index b16c291..35b9123 100644 --- a/src/c2se/backend/member_referrer.rs +++ b/src/c2se/backend/member_referrer.rs @@ -2,11 +2,17 @@ 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"); diff --git a/src/c2se/frontend/member_referrer.rs b/src/c2se/frontend/member_referrer.rs new file mode 100644 index 0000000..82c18f1 --- /dev/null +++ b/src/c2se/frontend/member_referrer.rs @@ -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"); diff --git a/src/c2se/frontend/mod.rs b/src/c2se/frontend/mod.rs index 771e86d..a5aabcc 100644 --- a/src/c2se/frontend/mod.rs +++ b/src/c2se/frontend/mod.rs @@ -1,6 +1,7 @@ pub mod api; pub mod bank; pub mod identity; +pub mod member_referrer; // pub mod member_bank_account; // pub mod member_bank_deposit; // pub mod member_bank_withdraw; diff --git a/src/c2se/member_referrer.rs b/src/c2se/member_referrer.rs index 744e2be..20ac59f 100644 --- a/src/c2se/member_referrer.rs +++ b/src/c2se/member_referrer.rs @@ -20,6 +20,27 @@ pub mod create_member_referrer_response { } } #[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, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// 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, + } +} +#[derive(Clone, PartialEq, ::prost::Message)] pub struct ListMemberReferrersRequest { #[prost(message, optional, tag = "1")] pub pagination: ::core::option::Option, @@ -78,6 +99,27 @@ pub mod get_member_referrer_response { } } #[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, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// 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, + } +} +#[derive(Clone, PartialEq, ::prost::Message)] pub struct UpdateMemberReferrerRequest { #[prost(string, tag = "1")] pub id: ::prost::alloc::string::String, @@ -119,3 +161,20 @@ 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, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// Nested message and enum types in `DeleteMemberReferrersResponse`. +pub mod delete_member_referrers_response { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result {} +} diff --git a/src/ss/member_referrer.rs b/src/ss/member_referrer.rs index 2f25ca7..4ead5d7 100644 --- a/src/ss/member_referrer.rs +++ b/src/ss/member_referrer.rs @@ -3,14 +3,20 @@ 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_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"); /// subject = bet.beteran.ss.member_referrer.CreateMemberReferrer #[derive(Clone, PartialEq, ::prost::Message)] @@ -44,6 +50,38 @@ pub mod create_member_referrer_response { ::core::option::Option, } } +/// subject = bet.beteran.ss.member_referrer.CreateMemberReferrers +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateMemberReferrersRequest { + #[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 `CreateMemberReferrersRequest`. +pub mod create_member_referrers_request { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Request { + #[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, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// 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, + } +} /// subject = bet.beteran.ss.member_referrer.ListMemberReferrers #[derive(Clone, PartialEq, ::prost::Message)] pub struct ListMemberReferrersRequest { @@ -124,6 +162,38 @@ pub mod get_member_referrer_response { ::core::option::Option, } } +/// subject = bet.beteran.ss.member_referrer.GetMemberReferrerByCode +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetMemberReferrerByCodeRequest { + #[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 `GetMemberReferrerByCodeRequest`. +pub mod get_member_referrer_by_code_request { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Request { + #[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, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// 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, + } +} /// subject = bet.beteran.ss.member_referrer.UpdateMemberReferrer #[derive(Clone, PartialEq, ::prost::Message)] pub struct UpdateMemberReferrerRequest { @@ -188,3 +258,31 @@ pub mod delete_member_referrer_response { #[derive(Clone, PartialEq, ::prost::Message)] pub struct Result {} } +/// subject = bet.beteran.ss.member_referrer.DeleteMemberReferrers +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DeleteMemberReferrersRequest { + #[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 `DeleteMemberReferrersRequest`. +pub mod delete_member_referrers_request { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Request { + #[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, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// Nested message and enum types in `DeleteMemberReferrersResponse`. +pub mod delete_member_referrers_response { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result {} +}