repo

package
v0.0.0-...-aec1c34 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInsufficientBalance = errors.New("insufficient balance")

Functions

func Paginate

func Paginate(page, pageSize int) func(db *gorm.DB) *gorm.DB

Types

type PaymentRepository

type PaymentRepository interface {
	EnableWallet(ctx context.Context, aid uint, balance float32) error
	ExecuteTX(ctx context.Context, aid uint, amount float32, isCredit bool) (uuid.UUID, error)
	ListTxnsByIDs(ctx context.Context, txids []uuid.UUID, qp *dto.BasicQueryParam) ([]model.Transaction, error)
	ListTxns(ctx context.Context, qp *dto.BasicQueryParam) ([]model.Transaction, error)
}

PaymentRepository defines all the DB operations that the service supports

func NewBasicOrderRepo

func NewBasicOrderRepo(db *gorm.DB) PaymentRepository

Jump to

Keyboard shortcuts

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