From acdb183c08fe6d74feb6b721798b037bcfd393b2 Mon Sep 17 00:00:00 2001 From: PARK BYUNG JUN Date: Thu, 11 Aug 2022 07:23:33 +0000 Subject: [PATCH] actions of member are added --- src/c2se/backend/member.rs | 56 ++++++++++++++++++++++++++++++++++++++ src/ss/member/member.rs | 55 +++++++++++++++++++++++++++++++++++++ 2 files changed, 111 insertions(+) diff --git a/src/c2se/backend/member.rs b/src/c2se/backend/member.rs index 285c07b..ed4d646 100644 --- a/src/c2se/backend/member.rs +++ b/src/c2se/backend/member.rs @@ -52,6 +52,7 @@ pub mod list_members_response { pub members: ::prost::alloc::vec::Vec, } } + pub const SUBJECT_GET_MEMBER: &str = const_format::concatcp!(SUBJECT, ".GetMember"); /// subject = bet.beteran.c2se.backend.member.GetMember #[derive(Clone, PartialEq, ::prost::Message)] @@ -93,9 +94,64 @@ pub struct GetMemberByUsernameResponse { /// Nested message and enum types in `GetMemberByUsernameResponse`. pub mod get_member_by_username_response { use crate::models::member; + #[derive(Clone, PartialEq, ::prost::Message)] pub struct Result { #[prost(message, optional, tag = "1")] pub member: ::core::option::Option, } } + +pub const SUBJECT_UPDATE_MEMBER: &str = const_format::concatcp!(SUBJECT, ".UpdateMember"); +/// subject = bet.beteran.c2se.backend.member.UpdateMember +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UpdateMemberRequest { + #[prost(string, optional, tag="1")] + pub site_id: ::core::option::Option<::prost::alloc::string::String>, + #[prost(string, optional, tag="2")] + pub member_level_id: ::core::option::Option<::prost::alloc::string::String>, + #[prost(string, optional, tag="3")] + pub password: ::core::option::Option<::prost::alloc::string::String>, + #[prost(string, optional, tag="4")] + pub mobile_phone_number: ::core::option::Option<::prost::alloc::string::String>, + #[prost(enumeration="super::super::super::member::MemberState", optional, tag="5")] + pub state: ::core::option::Option, +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UpdateMemberResponse { + #[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 `UpdateMemberResponse`. +pub mod update_member_response { + use crate::models::member; + + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, optional, tag="1")] + pub member: ::core::option::Option, + } +} + +pub const SUBJECT_DELETE_MEMBER: &str = const_format::concatcp!(SUBJECT, ".DeleteMember"); +/// subject = bet.beteran.c2se.backend.member.DeleteMember +#[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, + #[prost(message, optional, tag="2")] + pub result: ::core::option::Option, +} +/// Nested message and enum types in `DeleteMemberResponse`. +pub mod delete_member_response { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + } +} diff --git a/src/ss/member/member.rs b/src/ss/member/member.rs index 9f68b35..e433f39 100644 --- a/src/ss/member/member.rs +++ b/src/ss/member/member.rs @@ -111,3 +111,58 @@ pub mod get_member_by_username_response { pub member: ::core::option::Option, } } + +/// subject = bet.beteran.ss.member.UpdateMember +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UpdateMemberRequest { + #[prost(message, optional, tag="1")] + pub client: ::core::option::Option, + #[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 password: ::core::option::Option<::prost::alloc::string::String>, + #[prost(string, optional, tag="5")] + pub mobile_phone_number: ::core::option::Option<::prost::alloc::string::String>, + #[prost(enumeration="super::super::member::MemberState", optional, tag="6")] + pub state: ::core::option::Option, +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UpdateMemberResponse { + #[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 `UpdateMemberResponse`. +pub mod update_member_response { + use crate::models::member; + + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, optional, tag="1")] + pub member: ::core::option::Option, + } +} +/// subject = bet.beteran.ss.member.DeleteMember +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DeleteMemberRequest { + #[prost(message, optional, tag="1")] + pub client: ::core::option::Option, + #[prost(string, tag="2")] + pub id: ::prost::alloc::string::String, +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DeleteMemberResponse { + #[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 `DeleteMemberResponse`. +pub mod delete_member_response { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + } +}