Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewWalletUseCase)
Functions ¶
This section is empty.
Types ¶
type TranscationRepo ¶
type TranscationRepo interface { // SaveTranscation 交易持久化 SaveTranscation(ctx context.Context, ts *types.Transcation) error }
type WalletRepo ¶
type WalletUseCase ¶
type WalletUseCase struct {
// contains filtered or unexported fields
}
func NewWalletUseCase ¶
func NewWalletUseCase(walletRepo WalletRepo, transcationRepo TranscationRepo) *WalletUseCase
func (*WalletUseCase) GetVirtualWallet ¶
func (w *WalletUseCase) GetVirtualWallet(ctx context.Context, id uint) (*types.VirtualWallet, error)
GetVirtualWallet 获取用户虚拟钱包
Click to show internal directories.
Click to hide internal directories.