diff --git a/src/ss/member.rs b/src/ss/member.rs index 3d675a0..eb4cd6a 100644 --- a/src/ss/member.rs +++ b/src/ss/member.rs @@ -6,277 +6,281 @@ pub const SUBJECT_GET_MEMBER: &str = const_format::concatcp!(SUBJECT, ".GetMembe pub const SUBJECT_GET_MEMBER_BY_USERNAME: &str = const_format::concatcp!(SUBJECT, ".GetMemberByUsername"); pub const SUBJECT_UPDATE_MEMBER: &str = const_format::concatcp!(SUBJECT, ".UpdateMember"); +pub const SUBJECT_UPDATE_MEMBER_FOR_STATE: &str = + const_format::concatcp!(SUBJECT, ".UpdateMemberForState"); pub const SUBJECT_DELETE_MEMBER: &str = const_format::concatcp!(SUBJECT, ".DeleteMember"); - /// subject = bet.beteran.ss.member.CreateMember #[derive(Clone, PartialEq, ::prost::Message)] pub struct CreateMemberRequest { - #[prost(message, optional, tag="1")] - pub client: ::core::option::Option, - #[prost(message, optional, tag="2")] - pub request: ::core::option::Option, + #[prost(message, optional, tag = "1")] + pub client: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub request: ::core::option::Option, } /// Nested message and enum types in `CreateMemberRequest`. pub mod create_member_request { - #[derive(Clone, PartialEq, ::prost::Message)] - pub struct Request { - #[prost(string, tag="1")] - pub site_id: ::prost::alloc::string::String, - #[prost(string, tag="2")] - pub member_class_id: ::prost::alloc::string::String, - #[prost(string, tag="3")] - pub member_level_id: ::prost::alloc::string::String, - #[prost(string, optional, tag="4")] - pub referrer_member_username: ::core::option::Option<::prost::alloc::string::String>, - #[prost(string, tag="5")] - pub username: ::prost::alloc::string::String, - #[prost(string, tag="6")] - pub password: ::prost::alloc::string::String, - #[prost(string, tag="7")] - pub nickname: ::prost::alloc::string::String, - #[prost(string, optional, tag="8")] - pub mobile_phone_number: ::core::option::Option<::prost::alloc::string::String>, - #[prost(enumeration="crate::models::member::MemberState", tag="9")] - pub state: i32, - } + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Request { + #[prost(string, tag = "1")] + pub site_id: ::prost::alloc::string::String, + #[prost(string, tag = "2")] + pub member_class_id: ::prost::alloc::string::String, + #[prost(string, tag = "3")] + pub member_level_id: ::prost::alloc::string::String, + #[prost(string, optional, tag = "4")] + pub referrer_member_username: ::core::option::Option<::prost::alloc::string::String>, + #[prost(string, tag = "5")] + pub username: ::prost::alloc::string::String, + #[prost(string, tag = "6")] + pub password: ::prost::alloc::string::String, + #[prost(string, tag = "7")] + pub nickname: ::prost::alloc::string::String, + #[prost(string, optional, tag = "8")] + pub mobile_phone_number: ::core::option::Option<::prost::alloc::string::String>, + #[prost(enumeration = "crate::models::member::MemberState", tag = "9")] + pub state: i32, + } } #[derive(Clone, PartialEq, ::prost::Message)] pub struct CreateMemberResponse { - #[prost(message, optional, tag="1")] - pub error: ::core::option::Option, - #[prost(message, optional, tag="2")] - pub result: ::core::option::Option, + #[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 `CreateMemberResponse`. pub mod create_member_response { - #[derive(Clone, PartialEq, ::prost::Message)] - pub struct Result { - #[prost(message, optional, tag="1")] - pub member: ::core::option::Option, - } + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, optional, tag = "1")] + pub member: ::core::option::Option, + } } /// 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 request: ::core::option::Option, + #[prost(message, optional, tag = "1")] + pub client: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub request: ::core::option::Option, } /// Nested message and enum types in `ListMembersRequest`. pub mod list_members_request { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Request { + #[prost(message, optional, tag = "1")] + pub pagination: ::core::option::Option, + #[prost(message, repeated, tag = "2")] + pub sorts: ::prost::alloc::vec::Vec, + #[prost(message, optional, tag = "3")] + pub search: ::core::option::Option, + } + /// Nested message and enum types in `Request`. + pub mod request { #[derive(Clone, PartialEq, ::prost::Message)] - pub struct Request { - #[prost(message, optional, tag="1")] - pub pagination: ::core::option::Option, - #[prost(message, repeated, tag="2")] - pub sorts: ::prost::alloc::vec::Vec, - #[prost(message, optional, tag="3")] - pub search: ::core::option::Option, - } - /// Nested message and enum types in `Request`. - pub mod request { - #[derive(Clone, PartialEq, ::prost::Message)] - pub struct Search { - #[prost(string, optional, tag="1")] - pub site_id: ::core::option::Option<::prost::alloc::string::String>, - #[prost(string, optional, tag="2")] - pub member_class_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 referrer_member_id: ::core::option::Option<::prost::alloc::string::String>, - #[prost(string, optional, tag="5")] - pub username_like: ::core::option::Option<::prost::alloc::string::String>, - #[prost(string, optional, tag="6")] - pub nickname_like: ::core::option::Option<::prost::alloc::string::String>, - #[prost(string, optional, tag="7")] - pub mobile_phone_number_like: ::core::option::Option<::prost::alloc::string::String>, - #[prost(string, optional, tag="8")] - pub last_signined_ip: ::core::option::Option<::prost::alloc::string::String>, - #[prost(enumeration="crate::models::member::MemberState", optional, tag="9")] - pub state: ::core::option::Option, - #[prost(uint64, optional, tag="10")] - pub deleted_at: ::core::option::Option, - } + pub struct Search { + #[prost(string, optional, tag = "1")] + pub site_id: ::core::option::Option<::prost::alloc::string::String>, + #[prost(string, optional, tag = "2")] + pub member_class_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 referrer_member_id: ::core::option::Option<::prost::alloc::string::String>, + #[prost(string, optional, tag = "5")] + pub username_like: ::core::option::Option<::prost::alloc::string::String>, + #[prost(string, optional, tag = "6")] + pub nickname_like: ::core::option::Option<::prost::alloc::string::String>, + #[prost(string, optional, tag = "7")] + pub mobile_phone_number_like: ::core::option::Option<::prost::alloc::string::String>, + #[prost(string, optional, tag = "8")] + pub last_signined_ip: ::core::option::Option<::prost::alloc::string::String>, + #[prost( + enumeration = "crate::models::member::MemberState", + optional, + tag = "9" + )] + pub state: ::core::option::Option, + #[prost(uint64, optional, tag = "10")] + pub deleted_at: ::core::option::Option, } + } } #[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, + #[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 { - #[derive(Clone, PartialEq, ::prost::Message)] - pub struct Result { - #[prost(message, repeated, tag="1")] - pub members: ::prost::alloc::vec::Vec, - } + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, repeated, tag = "1")] + pub members: ::prost::alloc::vec::Vec, + } } /// 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(message, optional, tag="2")] - pub request: ::core::option::Option, + #[prost(message, optional, tag = "1")] + pub client: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub request: ::core::option::Option, } /// Nested message and enum types in `GetMemberRequest`. pub mod get_member_request { - #[derive(Clone, PartialEq, ::prost::Message)] - pub struct Request { - #[prost(string, tag="1")] - pub id: ::prost::alloc::string::String, - } + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Request { + #[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, - #[prost(message, optional, tag="2")] - pub result: ::core::option::Option, + #[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 { - #[derive(Clone, PartialEq, ::prost::Message)] - pub struct Result { - #[prost(message, optional, tag="1")] - pub member: ::core::option::Option, - } + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, optional, tag = "1")] + pub member: ::core::option::Option, + } } /// 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(message, optional, tag="2")] - pub request: ::core::option::Option, + #[prost(message, optional, tag = "1")] + pub client: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub request: ::core::option::Option, } /// Nested message and enum types in `GetMemberByUsernameRequest`. pub mod get_member_by_username_request { - #[derive(Clone, PartialEq, ::prost::Message)] - pub struct Request { - #[prost(string, tag="1")] - pub username: ::prost::alloc::string::String, - } + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Request { + #[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, - #[prost(message, optional, tag="2")] - pub result: ::core::option::Option, + #[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 { - #[derive(Clone, PartialEq, ::prost::Message)] - pub struct Result { - #[prost(message, optional, tag="1")] - pub member: ::core::option::Option, - } + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, optional, tag = "1")] + pub member: ::core::option::Option, + } } /// subject = bet.beteran.ss.member.UpdateMember #[derive(Clone, PartialEq, ::prost::Message)] pub struct UpdateMemberRequest { - #[prost(message, optional, tag="1")] - pub client: ::core::option::Option, - #[prost(message, optional, tag="2")] - pub request: ::core::option::Option, + #[prost(message, optional, tag = "1")] + pub client: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub request: ::core::option::Option, } /// Nested message and enum types in `UpdateMemberRequest`. pub mod update_member_request { - #[derive(Clone, PartialEq, ::prost::Message)] - pub struct Request { - #[prost(string, tag="1")] - pub id: ::prost::alloc::string::String, - #[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>, - } + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Request { + #[prost(string, tag = "1")] + pub id: ::prost::alloc::string::String, + #[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>, + } } #[derive(Clone, PartialEq, ::prost::Message)] pub struct UpdateMemberResponse { - #[prost(message, optional, tag="1")] - pub error: ::core::option::Option, - #[prost(message, optional, tag="2")] - pub result: ::core::option::Option, + #[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 `UpdateMemberResponse`. pub mod update_member_response { - #[derive(Clone, PartialEq, ::prost::Message)] - pub struct Result { - #[prost(message, optional, tag="1")] - pub member: ::core::option::Option, - } + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, optional, tag = "1")] + pub member: ::core::option::Option, + } } /// subject = bet.beteran.ss.member.UpdateMemberForState #[derive(Clone, PartialEq, ::prost::Message)] pub struct UpdateMemberForStateRequest { - #[prost(message, optional, tag="1")] - pub client: ::core::option::Option, - #[prost(message, optional, tag="2")] - pub request: ::core::option::Option, + #[prost(message, optional, tag = "1")] + pub client: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub request: ::core::option::Option, } /// Nested message and enum types in `UpdateMemberForStateRequest`. pub mod update_member_for_state_request { - #[derive(Clone, PartialEq, ::prost::Message)] - pub struct Request { - #[prost(string, tag="1")] - pub id: ::prost::alloc::string::String, - #[prost(enumeration="crate::models::member::MemberState", tag="2")] - pub state: i32, - } + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Request { + #[prost(string, tag = "1")] + pub id: ::prost::alloc::string::String, + #[prost(enumeration = "crate::models::member::MemberState", tag = "2")] + pub state: i32, + } } #[derive(Clone, PartialEq, ::prost::Message)] pub struct UpdateMemberForStateResponse { - #[prost(message, optional, tag="1")] - pub error: ::core::option::Option, - #[prost(message, optional, tag="2")] - pub result: ::core::option::Option, + #[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 `UpdateMemberForStateResponse`. pub mod update_member_for_state_response { - #[derive(Clone, PartialEq, ::prost::Message)] - pub struct Result { - #[prost(message, optional, tag="1")] - pub member: ::core::option::Option, - } + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, optional, tag = "1")] + pub member: ::core::option::Option, + } } /// subject = bet.beteran.ss.member.DeleteMember #[derive(Clone, PartialEq, ::prost::Message)] pub struct DeleteMemberRequest { - #[prost(message, optional, tag="1")] - pub client: ::core::option::Option, - #[prost(message, optional, tag="2")] - pub request: ::core::option::Option, + #[prost(message, optional, tag = "1")] + pub client: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub request: ::core::option::Option, } /// Nested message and enum types in `DeleteMemberRequest`. pub mod delete_member_request { - #[derive(Clone, PartialEq, ::prost::Message)] - pub struct Request { - #[prost(string, tag="1")] - pub id: ::prost::alloc::string::String, - } + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Request { + #[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, - #[prost(message, optional, tag="2")] - pub result: ::core::option::Option, + #[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 `DeleteMemberResponse`. pub mod delete_member_response { - #[derive(Clone, PartialEq, ::prost::Message)] - pub struct Result { - } + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result {} }