Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notification ¶
type Notification struct {
}
通知
func (*Notification) SendWalletCreditNotification ¶
func (n *Notification) SendWalletCreditNotification()
发送信用通知
func (*Notification) SendWalletDebitNotification ¶
func (n *Notification) SendWalletDebitNotification()
发送借款通知
type VerificationCode ¶
type VerificationCode struct {
// contains filtered or unexported fields
}
验证码
func (*VerificationCode) CheckCode ¶
func (s *VerificationCode) CheckCode(incomingCode int) error
检查验证码
type WalletFacade ¶
type WalletFacade struct {
Account *Account
Wallet *Wallet
VerificationCode *VerificationCode
Notification *Notification
Ledger *Ledger
}
定义钱包的外观类
func (*WalletFacade) AddMoneyToWallet ¶
func (w *WalletFacade) AddMoneyToWallet(accountID string, securityCode int, amount int) error
添加钱到钱包
func (*WalletFacade) DeductMoneyFromWallet ¶
func (w *WalletFacade) DeductMoneyFromWallet(accountID string, securityCode int, amount int) error
从钱包里扣款
Click to show internal directories.
Click to hide internal directories.