account

package
v0.0.0-...-4b0056c Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

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

func NewAccountRepository

func NewAccountRepository(db *sql.DB) *Repository

func (*Repository) Create

func (r *Repository) Create(account *entity.Account) (*int64, error)

func (*Repository) ExistsById

func (r *Repository) ExistsById(id *int64) bool

func (*Repository) FIndById

func (r *Repository) FIndById(id *int64) (*entity.Account, error)

func (*Repository) UpdateUserBalance

func (r *Repository) UpdateUserBalance(account *entity.Account) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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