mysql

package
v0.0.0-...-a655b0a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WalletMysqlRepo

type WalletMysqlRepo struct {
	// contains filtered or unexported fields
}

func NewWalletMysqlRepo

func NewWalletMysqlRepo(
	db *infras.MysqlConnector,
) *WalletMysqlRepo

func (*WalletMysqlRepo) AddWallet

func (o *WalletMysqlRepo) AddWallet(
	ctx context.Context,
	wallet *entities.Wallet,
) (*entities.Wallet, error)

func (*WalletMysqlRepo) UpdateWalletBalance

func (o *WalletMysqlRepo) UpdateWalletBalance(
	ctx context.Context,
	id int,
	amount float64,
) (*entities.Wallet, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL