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 {
#[prost(message, optional, tag = "1")]
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)]
@ -65,7 +65,7 @@ pub mod list_member_bank_deposits_response {
pub struct Result {
#[prost(message, repeated, tag = "1")]
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)]
@ -86,7 +86,7 @@ pub mod get_member_bank_deposit_response {
pub struct Result {
#[prost(message, optional, tag = "1")]
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)]
@ -113,7 +113,7 @@ pub mod update_member_bank_deposit_response {
pub struct Result {
#[prost(message, optional, tag = "1")]
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)]
@ -139,7 +139,7 @@ pub mod update_member_bank_deposit_for_state_response {
pub struct Result {
#[prost(message, optional, tag = "1")]
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)]

View File

@ -26,7 +26,7 @@ pub mod create_member_bank_withdraw_response {
pub struct Result {
#[prost(message, optional, tag = "1")]
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)]
@ -75,7 +75,7 @@ pub mod list_member_bank_withdraws_response {
pub struct Result {
#[prost(message, repeated, tag = "1")]
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)]
@ -96,7 +96,7 @@ pub mod get_member_bank_withdraw_response {
pub struct Result {
#[prost(message, optional, tag = "1")]
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)]
@ -129,7 +129,7 @@ pub mod update_member_bank_withdraw_response {
pub struct Result {
#[prost(message, optional, tag = "1")]
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)]
@ -155,7 +155,7 @@ pub mod update_member_bank_withdraw_for_state_response {
pub struct Result {
#[prost(message, optional, tag = "1")]
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)]

View File

@ -1,28 +1,50 @@
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MemberBankDeposit {
#[prost(string, tag="1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag="2")]
pub member_id: ::prost::alloc::string::String,
#[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,
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub member_id: ::prost::alloc::string::String,
#[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,
}
#[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,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum MemberBankDepositState {
None = 0,
Application = 1,
Complete = 2,
None = 0,
Application = 1,
Pending = 2,
Complete = 3,
}

View File

@ -1,34 +1,62 @@
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MemberBankWithdraw {
#[prost(string, tag="1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag="2")]
pub member_id: ::prost::alloc::string::String,
#[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,
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub member_id: ::prost::alloc::string::String,
#[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,
}
#[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,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum MemberBankWithdrawState {
None = 0,
Application = 1,
Complete = 2,
None = 0,
Application = 1,
Pending = 2,
Complete = 3,
}

View File

@ -52,7 +52,7 @@ pub mod create_member_bank_deposit_response {
pub struct Result {
#[prost(message, optional, tag = "1")]
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
@ -108,7 +108,7 @@ pub mod list_member_bank_deposits_response {
pub struct Result {
#[prost(message, repeated, tag = "1")]
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
@ -140,7 +140,7 @@ pub mod get_member_bank_deposit_response {
pub struct Result {
#[prost(message, optional, tag = "1")]
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
@ -178,7 +178,7 @@ pub mod update_member_bank_deposit_response {
pub struct Result {
#[prost(message, optional, tag = "1")]
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
@ -215,7 +215,7 @@ pub mod update_member_bank_deposit_for_state_response {
pub struct Result {
#[prost(message, optional, tag = "1")]
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
@ -261,6 +261,6 @@ pub mod after_update_member_bank_deposit_for_state {
pub struct Event {
#[prost(message, optional, tag = "1")]
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 {
#[prost(message, optional, tag = "1")]
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
@ -118,7 +118,7 @@ pub mod list_member_bank_withdraws_response {
pub struct Result {
#[prost(message, repeated, tag = "1")]
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
@ -150,7 +150,7 @@ pub mod get_member_bank_withdraw_response {
pub struct Result {
#[prost(message, optional, tag = "1")]
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
@ -194,7 +194,7 @@ pub mod update_member_bank_withdraw_response {
pub struct Result {
#[prost(message, optional, tag = "1")]
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
@ -231,7 +231,7 @@ pub mod update_member_bank_withdraw_for_state_response {
pub struct Result {
#[prost(message, optional, tag = "1")]
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
@ -277,6 +277,6 @@ pub mod after_update_member_bank_withdraw_for_state {
pub struct Event {
#[prost(message, optional, tag = "1")]
pub member_bank_withdraw:
::core::option::Option<crate::models::member_bank_withdraw::MemberBankWithdraw>,
::core::option::Option<crate::models::member_bank_withdraw::MemberBankWithdrawModel>,
}
}