create_member is modified

This commit is contained in:
병준 박 2022-08-14 15:18:30 +00:00
parent 582f8de241
commit 84d9f84e5a
2 changed files with 157 additions and 130 deletions

View File

@ -16,8 +16,20 @@ pub struct CreateMemberRequest {
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 {
@ -63,7 +75,11 @@ pub mod list_members_request {
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(
enumeration = "crate::models::member::MemberState",
optional,
tag = "9"
)]
pub state: ::core::option::Option<i32>, pub state: ::core::option::Option<i32>,
#[prost(uint64, optional, tag = "10")] #[prost(uint64, optional, tag = "10")]
pub deleted_at: ::core::option::Option<u64>, pub deleted_at: ::core::option::Option<u64>,
@ -189,6 +205,5 @@ pub struct DeleteMemberResponse {
/// 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 {}
}
} }

View File

@ -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)]