Documentation
¶
Overview ¶
Package data 封装db方法
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
Store 提供封装的db方法和事务
func (*Store) TransferTx ¶
func (s *Store) TransferTx(ctx context.Context, arg TransferTxParams) (TransferTxResults, error)
TransferTx 转账事务
type TransferTxParams ¶
type TransferTxParams struct { FromAccountID int64 `json:"from_account_id"` ToAccountID int64 `json:"to_account_id"` Amount int64 `json:"amount"` }
TransferTxParams 转账事务入参
Click to show internal directories.
Click to hide internal directories.