diff --git a/src/ss/member/member.rs b/src/ss/member/member.rs new file mode 100644 index 0000000..006f494 --- /dev/null +++ b/src/ss/member/member.rs @@ -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, + #[prost(message, optional, tag="2")] + pub pagination: ::core::option::Option, + #[prost(message, repeated, tag="3")] + pub searches: ::prost::alloc::vec::Vec, + #[prost(message, repeated, tag="4")] + pub sorts: ::prost::alloc::vec::Vec, +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListMembersResponse { + #[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 `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, + } +} + +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, + #[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, + #[prost(message, optional, tag="2")] + pub result: ::core::option::Option, +} +/// 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, + } +} + +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, + #[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, + #[prost(message, optional, tag="2")] + pub result: ::core::option::Option, +} +/// 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, + } +} diff --git a/src/ss/member/mod.rs b/src/ss/member/mod.rs index db53a0c..f764bbb 100644 --- a/src/ss/member/mod.rs +++ b/src/ss/member/mod.rs @@ -1 +1,2 @@ pub mod identity; +pub mod member;