member_referrer is modified

This commit is contained in:
병준 박 2022-08-20 09:18:39 +00:00
parent 75410ef97b
commit 88fd2237c6
5 changed files with 168 additions and 0 deletions

View File

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

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

View File

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

View File

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

@ -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<crate::models::member_referrer::MemberReferrerModel>,
}
}
/// 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<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<create_member_referrers_request::Request>,
}
/// 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<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>,
}
}
/// 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<crate::models::member_referrer::MemberReferrerModel>,
}
}
/// 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<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<get_member_referrer_by_code_request::Request>,
}
/// 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<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>,
}
}
/// 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<crate::models::core::network::Client>,
#[prost(message, optional, tag = "2")]
pub request: ::core::option::Option<delete_member_referrers_request::Request>,
}
/// 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<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 {}
}