repository

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

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

Go to latest
Published: Apr 11, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserRepository

type UserRepository interface {
	AddBalance(userID string, transactionID string, amount float64) (*model.User, error)
	GetUserInfo(userID string) (*model.User, error)
	GetHistoryList(userID string, pageSize int64, cursor string) ([]*model.Transaction, error)
	GetHistoryCount(userID string) (int64, error)
}

UserRepository ...

func NewUserRepo

func NewUserRepo(db *sqlx.DB) UserRepository

NewUserRepo returns a new user repo instance

Jump to

Keyboard shortcuts

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