return type is changed

This commit is contained in:
병준 박 2022-08-28 13:39:46 +00:00
parent 1ebb3c8152
commit ea23af9348
6 changed files with 120 additions and 70 deletions

View File

@ -20,7 +20,7 @@ pub mod create_member_bank_deposit_response {
pub struct Result { pub struct Result {
#[prost(message, optional, tag = "1")] #[prost(message, optional, tag = "1")]
pub member_bank_deposit: pub member_bank_deposit:
::core::option::Option<crate::models::member_bank_deposit::MemberBankDeposit>, ::core::option::Option<crate::models::member_bank_deposit::MemberBankDepositModel>,
} }
} }
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
@ -65,7 +65,7 @@ pub mod list_member_bank_deposits_response {
pub struct Result { pub struct Result {
#[prost(message, repeated, tag = "1")] #[prost(message, repeated, tag = "1")]
pub member_bank_deposits: pub member_bank_deposits:
::prost::alloc::vec::Vec<crate::models::member_bank_deposit::MemberBankDeposit>, ::prost::alloc::vec::Vec<crate::models::member_bank_deposit::MemberBankDepositModel>,
} }
} }
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
@ -86,7 +86,7 @@ pub mod get_member_bank_deposit_response {
pub struct Result { pub struct Result {
#[prost(message, optional, tag = "1")] #[prost(message, optional, tag = "1")]
pub member_bank_deposit: pub member_bank_deposit:
::core::option::Option<crate::models::member_bank_deposit::MemberBankDeposit>, ::core::option::Option<crate::models::member_bank_deposit::MemberBankDepositModel>,
} }
} }
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
@ -113,7 +113,7 @@ pub mod update_member_bank_deposit_response {
pub struct Result { pub struct Result {
#[prost(message, optional, tag = "1")] #[prost(message, optional, tag = "1")]
pub member_bank_deposit: pub member_bank_deposit:
::core::option::Option<crate::models::member_bank_deposit::MemberBankDeposit>, ::core::option::Option<crate::models::member_bank_deposit::MemberBankDepositModel>,
} }
} }
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
@ -139,7 +139,7 @@ pub mod update_member_bank_deposit_for_state_response {
pub struct Result { pub struct Result {
#[prost(message, optional, tag = "1")] #[prost(message, optional, tag = "1")]
pub member_bank_deposit: pub member_bank_deposit:
::core::option::Option<crate::models::member_bank_deposit::MemberBankDeposit>, ::core::option::Option<crate::models::member_bank_deposit::MemberBankDepositModel>,
} }
} }
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]

View File

@ -26,7 +26,7 @@ pub mod create_member_bank_withdraw_response {
pub struct Result { pub struct Result {
#[prost(message, optional, tag = "1")] #[prost(message, optional, tag = "1")]
pub member_bank_withdraw: pub member_bank_withdraw:
::core::option::Option<crate::models::member_bank_withdraw::MemberBankWithdraw>, ::core::option::Option<crate::models::member_bank_withdraw::MemberBankWithdrawModel>,
} }
} }
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
@ -75,7 +75,7 @@ pub mod list_member_bank_withdraws_response {
pub struct Result { pub struct Result {
#[prost(message, repeated, tag = "1")] #[prost(message, repeated, tag = "1")]
pub member_bank_withdraws: pub member_bank_withdraws:
::prost::alloc::vec::Vec<crate::models::member_bank_withdraw::MemberBankWithdraw>, ::prost::alloc::vec::Vec<crate::models::member_bank_withdraw::MemberBankWithdrawModel>,
} }
} }
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
@ -96,7 +96,7 @@ pub mod get_member_bank_withdraw_response {
pub struct Result { pub struct Result {
#[prost(message, optional, tag = "1")] #[prost(message, optional, tag = "1")]
pub member_bank_withdraw: pub member_bank_withdraw:
::core::option::Option<crate::models::member_bank_withdraw::MemberBankWithdraw>, ::core::option::Option<crate::models::member_bank_withdraw::MemberBankWithdrawModel>,
} }
} }
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
@ -129,7 +129,7 @@ pub mod update_member_bank_withdraw_response {
pub struct Result { pub struct Result {
#[prost(message, optional, tag = "1")] #[prost(message, optional, tag = "1")]
pub member_bank_withdraw: pub member_bank_withdraw:
::core::option::Option<crate::models::member_bank_withdraw::MemberBankWithdraw>, ::core::option::Option<crate::models::member_bank_withdraw::MemberBankWithdrawModel>,
} }
} }
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
@ -155,7 +155,7 @@ pub mod update_member_bank_withdraw_for_state_response {
pub struct Result { pub struct Result {
#[prost(message, optional, tag = "1")] #[prost(message, optional, tag = "1")]
pub member_bank_withdraw: pub member_bank_withdraw:
::core::option::Option<crate::models::member_bank_withdraw::MemberBankWithdraw>, ::core::option::Option<crate::models::member_bank_withdraw::MemberBankWithdrawModel>,
} }
} }
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]

View File

@ -1,22 +1,43 @@
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
pub struct MemberBankDeposit { pub struct MemberBankDeposit {
#[prost(string, tag="1")] #[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String, pub id: ::prost::alloc::string::String,
#[prost(string, tag="2")] #[prost(string, tag = "2")]
pub member_id: ::prost::alloc::string::String, pub member_id: ::prost::alloc::string::String,
#[prost(string, tag="3")] #[prost(string, tag = "3")]
pub name: ::prost::alloc::string::String, pub name: ::prost::alloc::string::String,
#[prost(uint32, tag="4")] #[prost(uint32, tag = "4")]
pub amount: u32, pub amount: u32,
#[prost(string, optional, tag="5")] #[prost(string, optional, tag = "5")]
pub memo: ::core::option::Option<::prost::alloc::string::String>, pub memo: ::core::option::Option<::prost::alloc::string::String>,
#[prost(enumeration="MemberBankDepositState", tag="6")] #[prost(enumeration = "MemberBankDepositState", tag = "6")]
pub state: i32, pub state: i32,
#[prost(uint64, tag="7")] #[prost(uint64, tag = "7")]
pub state_changed_at: u64, pub state_changed_at: u64,
#[prost(uint64, tag="8")] #[prost(uint64, tag = "8")]
pub created_at: u64, pub created_at: u64,
#[prost(uint64, tag="9")] #[prost(uint64, tag = "9")]
pub updated_at: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MemberBankDepositModel {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub member: ::core::option::Option<super::member::Member>,
#[prost(string, tag = "3")]
pub name: ::prost::alloc::string::String,
#[prost(uint32, tag = "4")]
pub amount: u32,
#[prost(string, optional, tag = "5")]
pub memo: ::core::option::Option<::prost::alloc::string::String>,
#[prost(enumeration = "MemberBankDepositState", tag = "6")]
pub state: i32,
#[prost(uint64, tag = "7")]
pub state_changed_at: u64,
#[prost(uint64, tag = "8")]
pub created_at: u64,
#[prost(uint64, tag = "9")]
pub updated_at: u64, pub updated_at: u64,
} }
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
@ -24,5 +45,6 @@ pub struct MemberBankDeposit {
pub enum MemberBankDepositState { pub enum MemberBankDepositState {
None = 0, None = 0,
Application = 1, Application = 1,
Complete = 2, Pending = 2,
Complete = 3,
} }

View File

@ -1,28 +1,55 @@
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
pub struct MemberBankWithdraw { pub struct MemberBankWithdraw {
#[prost(string, tag="1")] #[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String, pub id: ::prost::alloc::string::String,
#[prost(string, tag="2")] #[prost(string, tag = "2")]
pub member_id: ::prost::alloc::string::String, pub member_id: ::prost::alloc::string::String,
#[prost(string, tag="3")] #[prost(string, tag = "3")]
pub bank_name: ::prost::alloc::string::String, pub bank_name: ::prost::alloc::string::String,
#[prost(string, tag="4")] #[prost(string, tag = "4")]
pub name: ::prost::alloc::string::String, pub name: ::prost::alloc::string::String,
#[prost(string, tag="5")] #[prost(string, tag = "5")]
pub account_number: ::prost::alloc::string::String, pub account_number: ::prost::alloc::string::String,
#[prost(uint32, tag="6")] #[prost(uint32, tag = "6")]
pub amount: u32, pub amount: u32,
#[prost(string, tag="7")] #[prost(string, tag = "7")]
pub password: ::prost::alloc::string::String, pub password: ::prost::alloc::string::String,
#[prost(string, optional, tag="8")] #[prost(string, optional, tag = "8")]
pub memo: ::core::option::Option<::prost::alloc::string::String>, pub memo: ::core::option::Option<::prost::alloc::string::String>,
#[prost(enumeration="MemberBankWithdrawState", tag="9")] #[prost(enumeration = "MemberBankWithdrawState", tag = "9")]
pub state: i32, pub state: i32,
#[prost(uint64, tag="10")] #[prost(uint64, tag = "10")]
pub state_changed_at: u64, pub state_changed_at: u64,
#[prost(uint64, tag="11")] #[prost(uint64, tag = "11")]
pub created_at: u64, pub created_at: u64,
#[prost(uint64, tag="12")] #[prost(uint64, tag = "12")]
pub updated_at: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MemberBankWithdrawModel {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub member: ::core::option::Option<super::member::Member>,
#[prost(string, tag = "3")]
pub bank_name: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub account_number: ::prost::alloc::string::String,
#[prost(uint32, tag = "6")]
pub amount: u32,
#[prost(string, tag = "7")]
pub password: ::prost::alloc::string::String,
#[prost(string, optional, tag = "8")]
pub memo: ::core::option::Option<::prost::alloc::string::String>,
#[prost(enumeration = "MemberBankWithdrawState", tag = "9")]
pub state: i32,
#[prost(uint64, tag = "10")]
pub state_changed_at: u64,
#[prost(uint64, tag = "11")]
pub created_at: u64,
#[prost(uint64, tag = "12")]
pub updated_at: u64, pub updated_at: u64,
} }
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
@ -30,5 +57,6 @@ pub struct MemberBankWithdraw {
pub enum MemberBankWithdrawState { pub enum MemberBankWithdrawState {
None = 0, None = 0,
Application = 1, Application = 1,
Complete = 2, Pending = 2,
Complete = 3,
} }

View File

@ -52,7 +52,7 @@ pub mod create_member_bank_deposit_response {
pub struct Result { pub struct Result {
#[prost(message, optional, tag = "1")] #[prost(message, optional, tag = "1")]
pub member_bank_deposit: pub member_bank_deposit:
::core::option::Option<crate::models::member_bank_deposit::MemberBankDeposit>, ::core::option::Option<crate::models::member_bank_deposit::MemberBankDepositModel>,
} }
} }
/// subject = bet.beteran.ss.member_bank_deposit.ListMemberBankDeposits /// subject = bet.beteran.ss.member_bank_deposit.ListMemberBankDeposits
@ -108,7 +108,7 @@ pub mod list_member_bank_deposits_response {
pub struct Result { pub struct Result {
#[prost(message, repeated, tag = "1")] #[prost(message, repeated, tag = "1")]
pub member_bank_deposits: pub member_bank_deposits:
::prost::alloc::vec::Vec<crate::models::member_bank_deposit::MemberBankDeposit>, ::prost::alloc::vec::Vec<crate::models::member_bank_deposit::MemberBankDepositModel>,
} }
} }
/// subject = bet.beteran.ss.member_bank_deposit.GetMemberBankDeposit /// subject = bet.beteran.ss.member_bank_deposit.GetMemberBankDeposit
@ -140,7 +140,7 @@ pub mod get_member_bank_deposit_response {
pub struct Result { pub struct Result {
#[prost(message, optional, tag = "1")] #[prost(message, optional, tag = "1")]
pub member_bank_deposit: pub member_bank_deposit:
::core::option::Option<crate::models::member_bank_deposit::MemberBankDeposit>, ::core::option::Option<crate::models::member_bank_deposit::MemberBankDepositModel>,
} }
} }
/// subject = bet.beteran.ss.member_bank_deposit.UpdateMemberBankDeposit /// subject = bet.beteran.ss.member_bank_deposit.UpdateMemberBankDeposit
@ -178,7 +178,7 @@ pub mod update_member_bank_deposit_response {
pub struct Result { pub struct Result {
#[prost(message, optional, tag = "1")] #[prost(message, optional, tag = "1")]
pub member_bank_deposit: pub member_bank_deposit:
::core::option::Option<crate::models::member_bank_deposit::MemberBankDeposit>, ::core::option::Option<crate::models::member_bank_deposit::MemberBankDepositModel>,
} }
} }
/// subject = bet.beteran.ss.member_bank_deposit.UpdateMemberBankDepositForState /// subject = bet.beteran.ss.member_bank_deposit.UpdateMemberBankDepositForState
@ -215,7 +215,7 @@ pub mod update_member_bank_deposit_for_state_response {
pub struct Result { pub struct Result {
#[prost(message, optional, tag = "1")] #[prost(message, optional, tag = "1")]
pub member_bank_deposit: pub member_bank_deposit:
::core::option::Option<crate::models::member_bank_deposit::MemberBankDeposit>, ::core::option::Option<crate::models::member_bank_deposit::MemberBankDepositModel>,
} }
} }
/// subject = bet.beteran.ss.member_bank_deposit.DeleteMemberBankDeposit /// subject = bet.beteran.ss.member_bank_deposit.DeleteMemberBankDeposit
@ -261,6 +261,6 @@ pub mod after_update_member_bank_deposit_for_state {
pub struct Event { pub struct Event {
#[prost(message, optional, tag = "1")] #[prost(message, optional, tag = "1")]
pub member_bank_deposit: pub member_bank_deposit:
::core::option::Option<crate::models::member_bank_deposit::MemberBankDeposit>, ::core::option::Option<crate::models::member_bank_deposit::MemberBankDepositModel>,
} }
} }

View File

@ -58,7 +58,7 @@ pub mod create_member_bank_withdraw_response {
pub struct Result { pub struct Result {
#[prost(message, optional, tag = "1")] #[prost(message, optional, tag = "1")]
pub member_bank_withdraw: pub member_bank_withdraw:
::core::option::Option<crate::models::member_bank_withdraw::MemberBankWithdraw>, ::core::option::Option<crate::models::member_bank_withdraw::MemberBankWithdrawModel>,
} }
} }
/// subject = bet.beteran.ss.member_bank_withdraw.ListMemberBankWithdraws /// subject = bet.beteran.ss.member_bank_withdraw.ListMemberBankWithdraws
@ -118,7 +118,7 @@ pub mod list_member_bank_withdraws_response {
pub struct Result { pub struct Result {
#[prost(message, repeated, tag = "1")] #[prost(message, repeated, tag = "1")]
pub member_bank_withdraws: pub member_bank_withdraws:
::prost::alloc::vec::Vec<crate::models::member_bank_withdraw::MemberBankWithdraw>, ::prost::alloc::vec::Vec<crate::models::member_bank_withdraw::MemberBankWithdrawModel>,
} }
} }
/// subject = bet.beteran.ss.member_bank_withdraw.GetMemberBankWithdraw /// subject = bet.beteran.ss.member_bank_withdraw.GetMemberBankWithdraw
@ -150,7 +150,7 @@ pub mod get_member_bank_withdraw_response {
pub struct Result { pub struct Result {
#[prost(message, optional, tag = "1")] #[prost(message, optional, tag = "1")]
pub member_bank_withdraw: pub member_bank_withdraw:
::core::option::Option<crate::models::member_bank_withdraw::MemberBankWithdraw>, ::core::option::Option<crate::models::member_bank_withdraw::MemberBankWithdrawModel>,
} }
} }
/// subject = bet.beteran.ss.member_bank_withdraw.UpdateMemberBankWithdraw /// subject = bet.beteran.ss.member_bank_withdraw.UpdateMemberBankWithdraw
@ -194,7 +194,7 @@ pub mod update_member_bank_withdraw_response {
pub struct Result { pub struct Result {
#[prost(message, optional, tag = "1")] #[prost(message, optional, tag = "1")]
pub member_bank_withdraw: pub member_bank_withdraw:
::core::option::Option<crate::models::member_bank_withdraw::MemberBankWithdraw>, ::core::option::Option<crate::models::member_bank_withdraw::MemberBankWithdrawModel>,
} }
} }
/// subject = bet.beteran.ss.member_bank_withdraw.UpdateMemberBankWithdrawForState /// subject = bet.beteran.ss.member_bank_withdraw.UpdateMemberBankWithdrawForState
@ -231,7 +231,7 @@ pub mod update_member_bank_withdraw_for_state_response {
pub struct Result { pub struct Result {
#[prost(message, optional, tag = "1")] #[prost(message, optional, tag = "1")]
pub member_bank_withdraw: pub member_bank_withdraw:
::core::option::Option<crate::models::member_bank_withdraw::MemberBankWithdraw>, ::core::option::Option<crate::models::member_bank_withdraw::MemberBankWithdrawModel>,
} }
} }
/// subject = bet.beteran.ss.member_bank_withdraw.DeleteMemberBankWithdraw /// subject = bet.beteran.ss.member_bank_withdraw.DeleteMemberBankWithdraw
@ -277,6 +277,6 @@ pub mod after_update_member_bank_withdraw_for_state {
pub struct Event { pub struct Event {
#[prost(message, optional, tag = "1")] #[prost(message, optional, tag = "1")]
pub member_bank_withdraw: pub member_bank_withdraw:
::core::option::Option<crate::models::member_bank_withdraw::MemberBankWithdraw>, ::core::option::Option<crate::models::member_bank_withdraw::MemberBankWithdrawModel>,
} }
} }