receiptrepo

package
v0.0.0-...-e2b2710 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: GPL-3.0 Imports: 3 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 NewReceiptRepo

func NewReceiptRepo(master *sqlx.DB, slave *sqlx.DB) *Repository

func (*Repository) CreateReceipt

func (r *Repository) CreateReceipt(
	ctx context.Context,
	userID, pharmacyID, sum, discount int,
	purchaseUUID string,
) (int, error)

Jump to

Keyboard shortcuts

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