member is added

This commit is contained in:
병준 박 2022-08-10 08:19:10 +00:00
parent f20d3aa7e1
commit 8b8b5f7acf
2 changed files with 93 additions and 0 deletions

92
src/ss/member/member.rs Normal file
View File

@ -0,0 +1,92 @@
use crate::models::core;
use crate::protobuf::rpc;
use crate::protobuf::pagination;
const SUBJECT: &str = "bet.beteran.ss.member";
pub const SUBJECT_LIST_MEMBERS: &str = const_format::concatcp!(SUBJECT, ".ListMembers");
/// subject = bet.beteran.ss.member.ListMembers
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMembersRequest {
#[prost(message, optional, tag="1")]
pub client: ::core::option::Option<core::network::Client>,
#[prost(message, optional, tag="2")]
pub pagination: ::core::option::Option<pagination::Pagination>,
#[prost(message, repeated, tag="3")]
pub searches: ::prost::alloc::vec::Vec<pagination::Search>,
#[prost(message, repeated, tag="4")]
pub sorts: ::prost::alloc::vec::Vec<pagination::Sort>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMembersResponse {
#[prost(message, optional, tag="1")]
pub error: ::core::option::Option<rpc::Error>,
#[prost(message, optional, tag="2")]
pub result: ::core::option::Option<list_members_response::Result>,
}
/// Nested message and enum types in `ListMembersResponse`.
pub mod list_members_response {
use crate::models::member;
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, repeated, tag="1")]
pub members: ::prost::alloc::vec::Vec<member::Member>,
}
}
pub const SUBJECT_GET_MEMBER: &str = const_format::concatcp!(SUBJECT, ".GetMember");
/// subject = bet.beteran.ss.member.GetMember
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberRequest {
#[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 GetMemberResponse {
#[prost(message, optional, tag="1")]
pub error: ::core::option::Option<rpc::Error>,
#[prost(message, optional, tag="2")]
pub result: ::core::option::Option<get_member_response::Result>,
}
/// Nested message and enum types in `GetMemberResponse`.
pub mod get_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::Member>,
}
}
pub const SUBJECT_GET_MEMBER_BY_USERNAME: &str =
const_format::concatcp!(SUBJECT, ".GetMemberByUsername");
/// subject = bet.beteran.ss.member.GetMemberByUsername
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberByUsernameRequest {
#[prost(message, optional, tag="1")]
pub client: ::core::option::Option<core::network::Client>,
#[prost(string, tag="2")]
pub username: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberByUsernameResponse {
#[prost(message, optional, tag="1")]
pub error: ::core::option::Option<rpc::Error>,
#[prost(message, optional, tag="2")]
pub result: ::core::option::Option<get_member_by_username_response::Result>,
}
/// 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::Member>,
}
}

View File

@ -1 +1,2 @@
pub mod identity; pub mod identity;
pub mod member;