actions of member are added

This commit is contained in:
병준 박 2022-08-11 07:23:33 +00:00
parent be2be6107e
commit acdb183c08
2 changed files with 111 additions and 0 deletions

View File

@ -52,6 +52,7 @@ pub mod list_members_response {
pub members: ::prost::alloc::vec::Vec<member::MemberModel>,
}
}
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<member::MemberModel>,
}
}
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<i32>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberResponse {
#[prost(message, optional, tag="1")]
pub error: ::core::option::Option<rpc::Error>,
#[prost(message, optional, tag="2")]
pub result: ::core::option::Option<update_member_response::Result>,
}
/// 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<member::MemberModel>,
}
}
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<rpc::Error>,
#[prost(message, optional, tag="2")]
pub result: ::core::option::Option<delete_member_response::Result>,
}
/// Nested message and enum types in `DeleteMemberResponse`.
pub mod delete_member_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
}
}

View File

@ -111,3 +111,58 @@ pub mod get_member_by_username_response {
pub member: ::core::option::Option<member::MemberModel>,
}
}
/// subject = bet.beteran.ss.member.UpdateMember
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberRequest {
#[prost(message, optional, tag="1")]
pub client: ::core::option::Option<core::network::Client>,
#[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<i32>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberResponse {
#[prost(message, optional, tag="1")]
pub error: ::core::option::Option<rpc::Error>,
#[prost(message, optional, tag="2")]
pub result: ::core::option::Option<update_member_response::Result>,
}
/// 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<member::MemberModel>,
}
}
/// subject = bet.beteran.ss.member.DeleteMember
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteMemberRequest {
#[prost(message, optional, tag="1")]
pub client: ::core::option::Option<core::network::Client>,
#[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<rpc::Error>,
#[prost(message, optional, tag="2")]
pub result: ::core::option::Option<delete_member_response::Result>,
}
/// Nested message and enum types in `DeleteMemberResponse`.
pub mod delete_member_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
}
}