81 lines
3.0 KiB
Rust
81 lines
3.0 KiB
Rust
use crate::protobuf::pagination;
|
|
use crate::protobuf::rpc;
|
|
|
|
const SUBJECT: &str = "bet.beteran.c2se.backend.member";
|
|
|
|
pub const SUBJECT_LIST_MEMBERS: &str = const_format::concatcp!(SUBJECT, ".ListMembers");
|
|
/// subject = bet.beteran.c2se.backend.member.ListMembers
|
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
pub struct ListMembersRequest {
|
|
#[prost(message, optional, tag = "1")]
|
|
pub pagination: ::core::option::Option<pagination::Pagination>,
|
|
#[prost(message, repeated, tag = "2")]
|
|
pub searches: ::prost::alloc::vec::Vec<pagination::Search>,
|
|
#[prost(message, repeated, tag = "3")]
|
|
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.c2se.backend.member.GetMember
|
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
pub struct GetMemberRequest {
|
|
#[prost(string, tag = "1")]
|
|
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.c2se.backend.member.GetMemberByUsername
|
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
pub struct GetMemberByUsernameRequest {
|
|
#[prost(string, tag = "1")]
|
|
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>,
|
|
}
|
|
}
|