repository

package
v0.0.0-...-c8a774a Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PaymentRepository

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

func NewPaymentRepository

func NewPaymentRepository(db *gorm.DB) *PaymentRepository

func (*PaymentRepository) CreatePayment

func (repo *PaymentRepository) CreatePayment(ctx *gin.Context, payment model.Payment) (id int, err error)

func (*PaymentRepository) ListPayment

func (repo *PaymentRepository) ListPayment(ctx *gin.Context) (payments []dto.Payment)

Jump to

Keyboard shortcuts

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