paymentmethodrepo

package
v0.0.0-...-ffb043f Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QUERY_SELECT = "select pm.id, pm.code, pm.category, pm.name, pm.image, pm.key " +
		"from payment_method pm where pm.enabled = true "
	QUERY_BY_ID = QUERY_SELECT + "and pm.id = $1"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PaymentMethodRepository

type PaymentMethodRepository struct {
	DB dbc.SqlDbc
}

func (*PaymentMethodRepository) FindEnabledPaymentMethod

func (pmr *PaymentMethodRepository) FindEnabledPaymentMethod() ([]*model.PaymentMethod, error)

func (*PaymentMethodRepository) FindPaymentMethodById

func (pmr *PaymentMethodRepository) FindPaymentMethodById(paymentMethodId int) (*model.PaymentMethod, error)

Jump to

Keyboard shortcuts

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