create_member is modified
This commit is contained in:
parent
582f8de241
commit
84d9f84e5a
|
@ -1,194 +1,209 @@
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
pub struct CreateMemberRequest {
|
pub struct CreateMemberRequest {
|
||||||
#[prost(string, tag="1")]
|
#[prost(string, tag = "1")]
|
||||||
pub site_id: ::prost::alloc::string::String,
|
pub site_id: ::prost::alloc::string::String,
|
||||||
#[prost(string, tag="2")]
|
#[prost(string, tag = "2")]
|
||||||
pub member_class_id: ::prost::alloc::string::String,
|
pub member_class_id: ::prost::alloc::string::String,
|
||||||
#[prost(string, tag="3")]
|
#[prost(string, tag = "3")]
|
||||||
pub member_level_id: ::prost::alloc::string::String,
|
pub member_level_id: ::prost::alloc::string::String,
|
||||||
#[prost(string, optional, tag="4")]
|
#[prost(string, optional, tag = "4")]
|
||||||
pub referrer_member_username: ::core::option::Option<::prost::alloc::string::String>,
|
pub referrer_member_username: ::core::option::Option<::prost::alloc::string::String>,
|
||||||
#[prost(string, tag="5")]
|
#[prost(string, tag = "5")]
|
||||||
pub username: ::prost::alloc::string::String,
|
pub username: ::prost::alloc::string::String,
|
||||||
#[prost(string, tag="6")]
|
#[prost(string, tag = "6")]
|
||||||
pub password: ::prost::alloc::string::String,
|
pub password: ::prost::alloc::string::String,
|
||||||
#[prost(string, tag="7")]
|
#[prost(string, tag = "7")]
|
||||||
pub nickname: ::prost::alloc::string::String,
|
pub nickname: ::prost::alloc::string::String,
|
||||||
#[prost(string, optional, tag="8")]
|
#[prost(string, optional, tag = "8")]
|
||||||
pub mobile_phone_number: ::core::option::Option<::prost::alloc::string::String>,
|
pub mobile_phone_number: ::core::option::Option<::prost::alloc::string::String>,
|
||||||
#[prost(enumeration="crate::models::member::MemberState", tag="9")]
|
#[prost(message, optional, tag = "9")]
|
||||||
pub state: i32,
|
pub bank_account: ::core::option::Option<create_member_request::BankAccount>,
|
||||||
|
}
|
||||||
|
/// Nested message and enum types in `CreateMemberRequest`.
|
||||||
|
pub mod create_member_request {
|
||||||
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
|
pub struct BankAccount {
|
||||||
|
#[prost(string, tag = "1")]
|
||||||
|
pub bank_id: ::prost::alloc::string::String,
|
||||||
|
#[prost(string, tag = "2")]
|
||||||
|
pub name: ::prost::alloc::string::String,
|
||||||
|
#[prost(string, tag = "3")]
|
||||||
|
pub account_number: ::prost::alloc::string::String,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
pub struct CreateMemberResponse {
|
pub struct CreateMemberResponse {
|
||||||
#[prost(message, optional, tag="1")]
|
#[prost(message, optional, tag = "1")]
|
||||||
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
|
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
|
||||||
#[prost(message, optional, tag="2")]
|
#[prost(message, optional, tag = "2")]
|
||||||
pub result: ::core::option::Option<create_member_response::Result>,
|
pub result: ::core::option::Option<create_member_response::Result>,
|
||||||
}
|
}
|
||||||
/// Nested message and enum types in `CreateMemberResponse`.
|
/// Nested message and enum types in `CreateMemberResponse`.
|
||||||
pub mod create_member_response {
|
pub mod create_member_response {
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
pub struct Result {
|
pub struct Result {
|
||||||
#[prost(message, optional, tag="1")]
|
#[prost(message, optional, tag = "1")]
|
||||||
pub member: ::core::option::Option<crate::models::member::MemberModel>,
|
pub member: ::core::option::Option<crate::models::member::MemberModel>,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
pub struct ListMembersRequest {
|
pub struct ListMembersRequest {
|
||||||
#[prost(message, optional, tag="1")]
|
#[prost(message, optional, tag = "1")]
|
||||||
pub pagination: ::core::option::Option<crate::protobuf::pagination::Pagination>,
|
pub pagination: ::core::option::Option<crate::protobuf::pagination::Pagination>,
|
||||||
#[prost(message, repeated, tag="2")]
|
#[prost(message, repeated, tag = "2")]
|
||||||
pub sorts: ::prost::alloc::vec::Vec<crate::protobuf::pagination::Sort>,
|
pub sorts: ::prost::alloc::vec::Vec<crate::protobuf::pagination::Sort>,
|
||||||
#[prost(message, optional, tag="3")]
|
#[prost(message, optional, tag = "3")]
|
||||||
pub search: ::core::option::Option<list_members_request::Search>,
|
pub search: ::core::option::Option<list_members_request::Search>,
|
||||||
}
|
}
|
||||||
/// Nested message and enum types in `ListMembersRequest`.
|
/// Nested message and enum types in `ListMembersRequest`.
|
||||||
pub mod list_members_request {
|
pub mod list_members_request {
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
pub struct Search {
|
pub struct Search {
|
||||||
#[prost(string, optional, tag="1")]
|
#[prost(string, optional, tag = "1")]
|
||||||
pub site_id: ::core::option::Option<::prost::alloc::string::String>,
|
pub site_id: ::core::option::Option<::prost::alloc::string::String>,
|
||||||
#[prost(string, optional, tag="2")]
|
#[prost(string, optional, tag = "2")]
|
||||||
pub member_class_id: ::core::option::Option<::prost::alloc::string::String>,
|
pub member_class_id: ::core::option::Option<::prost::alloc::string::String>,
|
||||||
#[prost(string, optional, tag="3")]
|
#[prost(string, optional, tag = "3")]
|
||||||
pub member_level_id: ::core::option::Option<::prost::alloc::string::String>,
|
pub member_level_id: ::core::option::Option<::prost::alloc::string::String>,
|
||||||
#[prost(string, optional, tag="4")]
|
#[prost(string, optional, tag = "4")]
|
||||||
pub referrer_member_id: ::core::option::Option<::prost::alloc::string::String>,
|
pub referrer_member_id: ::core::option::Option<::prost::alloc::string::String>,
|
||||||
#[prost(string, optional, tag="5")]
|
#[prost(string, optional, tag = "5")]
|
||||||
pub username_like: ::core::option::Option<::prost::alloc::string::String>,
|
pub username_like: ::core::option::Option<::prost::alloc::string::String>,
|
||||||
#[prost(string, optional, tag="6")]
|
#[prost(string, optional, tag = "6")]
|
||||||
pub nickname_like: ::core::option::Option<::prost::alloc::string::String>,
|
pub nickname_like: ::core::option::Option<::prost::alloc::string::String>,
|
||||||
#[prost(string, optional, tag="7")]
|
#[prost(string, optional, tag = "7")]
|
||||||
pub mobile_phone_number_like: ::core::option::Option<::prost::alloc::string::String>,
|
pub mobile_phone_number_like: ::core::option::Option<::prost::alloc::string::String>,
|
||||||
#[prost(string, optional, tag="8")]
|
#[prost(string, optional, tag = "8")]
|
||||||
pub last_signined_ip: ::core::option::Option<::prost::alloc::string::String>,
|
pub last_signined_ip: ::core::option::Option<::prost::alloc::string::String>,
|
||||||
#[prost(enumeration="crate::models::member::MemberState", optional, tag="9")]
|
#[prost(
|
||||||
pub state: ::core::option::Option<i32>,
|
enumeration = "crate::models::member::MemberState",
|
||||||
#[prost(uint64, optional, tag="10")]
|
optional,
|
||||||
pub deleted_at: ::core::option::Option<u64>,
|
tag = "9"
|
||||||
}
|
)]
|
||||||
|
pub state: ::core::option::Option<i32>,
|
||||||
|
#[prost(uint64, optional, tag = "10")]
|
||||||
|
pub deleted_at: ::core::option::Option<u64>,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
pub struct ListMembersResponse {
|
pub struct ListMembersResponse {
|
||||||
#[prost(message, optional, tag="1")]
|
#[prost(message, optional, tag = "1")]
|
||||||
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
|
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
|
||||||
#[prost(message, optional, tag="2")]
|
#[prost(message, optional, tag = "2")]
|
||||||
pub result: ::core::option::Option<list_members_response::Result>,
|
pub result: ::core::option::Option<list_members_response::Result>,
|
||||||
}
|
}
|
||||||
/// Nested message and enum types in `ListMembersResponse`.
|
/// Nested message and enum types in `ListMembersResponse`.
|
||||||
pub mod list_members_response {
|
pub mod list_members_response {
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
pub struct Result {
|
pub struct Result {
|
||||||
#[prost(message, repeated, tag="1")]
|
#[prost(message, repeated, tag = "1")]
|
||||||
pub members: ::prost::alloc::vec::Vec<crate::models::member::MemberModel>,
|
pub members: ::prost::alloc::vec::Vec<crate::models::member::MemberModel>,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
pub struct GetMemberRequest {
|
pub struct GetMemberRequest {
|
||||||
#[prost(string, tag="1")]
|
#[prost(string, tag = "1")]
|
||||||
pub id: ::prost::alloc::string::String,
|
pub id: ::prost::alloc::string::String,
|
||||||
}
|
}
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
pub struct GetMemberResponse {
|
pub struct GetMemberResponse {
|
||||||
#[prost(message, optional, tag="1")]
|
#[prost(message, optional, tag = "1")]
|
||||||
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
|
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
|
||||||
#[prost(message, optional, tag="2")]
|
#[prost(message, optional, tag = "2")]
|
||||||
pub result: ::core::option::Option<get_member_response::Result>,
|
pub result: ::core::option::Option<get_member_response::Result>,
|
||||||
}
|
}
|
||||||
/// Nested message and enum types in `GetMemberResponse`.
|
/// Nested message and enum types in `GetMemberResponse`.
|
||||||
pub mod get_member_response {
|
pub mod get_member_response {
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
pub struct Result {
|
pub struct Result {
|
||||||
#[prost(message, optional, tag="1")]
|
#[prost(message, optional, tag = "1")]
|
||||||
pub member: ::core::option::Option<crate::models::member::MemberModel>,
|
pub member: ::core::option::Option<crate::models::member::MemberModel>,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
pub struct GetMemberByUsernameRequest {
|
pub struct GetMemberByUsernameRequest {
|
||||||
#[prost(string, tag="1")]
|
#[prost(string, tag = "1")]
|
||||||
pub username: ::prost::alloc::string::String,
|
pub username: ::prost::alloc::string::String,
|
||||||
}
|
}
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
pub struct GetMemberByUsernameResponse {
|
pub struct GetMemberByUsernameResponse {
|
||||||
#[prost(message, optional, tag="1")]
|
#[prost(message, optional, tag = "1")]
|
||||||
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
|
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
|
||||||
#[prost(message, optional, tag="2")]
|
#[prost(message, optional, tag = "2")]
|
||||||
pub result: ::core::option::Option<get_member_by_username_response::Result>,
|
pub result: ::core::option::Option<get_member_by_username_response::Result>,
|
||||||
}
|
}
|
||||||
/// Nested message and enum types in `GetMemberByUsernameResponse`.
|
/// Nested message and enum types in `GetMemberByUsernameResponse`.
|
||||||
pub mod get_member_by_username_response {
|
pub mod get_member_by_username_response {
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
pub struct Result {
|
pub struct Result {
|
||||||
#[prost(message, optional, tag="1")]
|
#[prost(message, optional, tag = "1")]
|
||||||
pub member: ::core::option::Option<crate::models::member::MemberModel>,
|
pub member: ::core::option::Option<crate::models::member::MemberModel>,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
pub struct UpdateMemberRequest {
|
pub struct UpdateMemberRequest {
|
||||||
#[prost(string, tag="1")]
|
#[prost(string, tag = "1")]
|
||||||
pub id: ::prost::alloc::string::String,
|
pub id: ::prost::alloc::string::String,
|
||||||
#[prost(string, optional, tag="2")]
|
#[prost(string, optional, tag = "2")]
|
||||||
pub site_id: ::core::option::Option<::prost::alloc::string::String>,
|
pub site_id: ::core::option::Option<::prost::alloc::string::String>,
|
||||||
#[prost(string, optional, tag="3")]
|
#[prost(string, optional, tag = "3")]
|
||||||
pub member_level_id: ::core::option::Option<::prost::alloc::string::String>,
|
pub member_level_id: ::core::option::Option<::prost::alloc::string::String>,
|
||||||
#[prost(string, optional, tag="4")]
|
#[prost(string, optional, tag = "4")]
|
||||||
pub password: ::core::option::Option<::prost::alloc::string::String>,
|
pub password: ::core::option::Option<::prost::alloc::string::String>,
|
||||||
#[prost(string, optional, tag="5")]
|
#[prost(string, optional, tag = "5")]
|
||||||
pub mobile_phone_number: ::core::option::Option<::prost::alloc::string::String>,
|
pub mobile_phone_number: ::core::option::Option<::prost::alloc::string::String>,
|
||||||
}
|
}
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
pub struct UpdateMemberResponse {
|
pub struct UpdateMemberResponse {
|
||||||
#[prost(message, optional, tag="1")]
|
#[prost(message, optional, tag = "1")]
|
||||||
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
|
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
|
||||||
#[prost(message, optional, tag="2")]
|
#[prost(message, optional, tag = "2")]
|
||||||
pub result: ::core::option::Option<update_member_response::Result>,
|
pub result: ::core::option::Option<update_member_response::Result>,
|
||||||
}
|
}
|
||||||
/// Nested message and enum types in `UpdateMemberResponse`.
|
/// Nested message and enum types in `UpdateMemberResponse`.
|
||||||
pub mod update_member_response {
|
pub mod update_member_response {
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
pub struct Result {
|
pub struct Result {
|
||||||
#[prost(message, optional, tag="1")]
|
#[prost(message, optional, tag = "1")]
|
||||||
pub member: ::core::option::Option<crate::models::member::MemberModel>,
|
pub member: ::core::option::Option<crate::models::member::MemberModel>,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
pub struct UpdateMemberForStateRequest {
|
pub struct UpdateMemberForStateRequest {
|
||||||
#[prost(string, tag="1")]
|
#[prost(string, tag = "1")]
|
||||||
pub id: ::prost::alloc::string::String,
|
pub id: ::prost::alloc::string::String,
|
||||||
#[prost(enumeration="crate::models::member::MemberState", tag="2")]
|
#[prost(enumeration = "crate::models::member::MemberState", tag = "2")]
|
||||||
pub state: i32,
|
pub state: i32,
|
||||||
}
|
}
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
pub struct UpdateMemberForStateResponse {
|
pub struct UpdateMemberForStateResponse {
|
||||||
#[prost(message, optional, tag="1")]
|
#[prost(message, optional, tag = "1")]
|
||||||
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
|
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
|
||||||
#[prost(message, optional, tag="2")]
|
#[prost(message, optional, tag = "2")]
|
||||||
pub result: ::core::option::Option<update_member_for_state_response::Result>,
|
pub result: ::core::option::Option<update_member_for_state_response::Result>,
|
||||||
}
|
}
|
||||||
/// Nested message and enum types in `UpdateMemberForStateResponse`.
|
/// Nested message and enum types in `UpdateMemberForStateResponse`.
|
||||||
pub mod update_member_for_state_response {
|
pub mod update_member_for_state_response {
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
pub struct Result {
|
pub struct Result {
|
||||||
#[prost(message, optional, tag="1")]
|
#[prost(message, optional, tag = "1")]
|
||||||
pub member: ::core::option::Option<crate::models::member::MemberModel>,
|
pub member: ::core::option::Option<crate::models::member::MemberModel>,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
pub struct DeleteMemberRequest {
|
pub struct DeleteMemberRequest {
|
||||||
#[prost(string, tag="1")]
|
#[prost(string, tag = "1")]
|
||||||
pub id: ::prost::alloc::string::String,
|
pub id: ::prost::alloc::string::String,
|
||||||
}
|
}
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
pub struct DeleteMemberResponse {
|
pub struct DeleteMemberResponse {
|
||||||
#[prost(message, optional, tag="1")]
|
#[prost(message, optional, tag = "1")]
|
||||||
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
|
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
|
||||||
#[prost(message, optional, tag="2")]
|
#[prost(message, optional, tag = "2")]
|
||||||
pub result: ::core::option::Option<delete_member_response::Result>,
|
pub result: ::core::option::Option<delete_member_response::Result>,
|
||||||
}
|
}
|
||||||
/// Nested message and enum types in `DeleteMemberResponse`.
|
/// Nested message and enum types in `DeleteMemberResponse`.
|
||||||
pub mod delete_member_response {
|
pub mod delete_member_response {
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
pub struct Result {
|
pub struct Result {}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,8 +38,20 @@ pub mod create_member_request {
|
||||||
pub nickname: ::prost::alloc::string::String,
|
pub nickname: ::prost::alloc::string::String,
|
||||||
#[prost(string, optional, tag = "8")]
|
#[prost(string, optional, tag = "8")]
|
||||||
pub mobile_phone_number: ::core::option::Option<::prost::alloc::string::String>,
|
pub mobile_phone_number: ::core::option::Option<::prost::alloc::string::String>,
|
||||||
#[prost(enumeration = "crate::models::member::MemberState", tag = "9")]
|
#[prost(message, optional, tag = "9")]
|
||||||
pub state: i32,
|
pub bank_account: ::core::option::Option<request::BankAccount>,
|
||||||
|
}
|
||||||
|
/// Nested message and enum types in `Request`.
|
||||||
|
pub mod request {
|
||||||
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
|
pub struct BankAccount {
|
||||||
|
#[prost(string, tag = "1")]
|
||||||
|
pub bank_id: ::prost::alloc::string::String,
|
||||||
|
#[prost(string, tag = "2")]
|
||||||
|
pub name: ::prost::alloc::string::String,
|
||||||
|
#[prost(string, tag = "3")]
|
||||||
|
pub account_number: ::prost::alloc::string::String,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user