member is added
This commit is contained in:
parent
f20d3aa7e1
commit
8b8b5f7acf
92
src/ss/member/member.rs
Normal file
92
src/ss/member/member.rs
Normal 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>,
|
||||
}
|
||||
}
|
|
@ -1 +1,2 @@
|
|||
pub mod identity;
|
||||
pub mod member;
|
||||
|
|
Loading…
Reference in New Issue
Block a user