customers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomerInterface

type CustomerInterface interface {
	Save(ctx context.Context, customer *models.Customer) (*models.Customer, error)
	QueryByID(ctx context.Context, ID uuid.UUID) (*models.Customer, error)
}

type CustomersRepository

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

func NewCustomersRepository

func NewCustomersRepository(db *database.DB) *CustomersRepository

func (*CustomersRepository) QueryByID

func (r *CustomersRepository) QueryByID(ctx context.Context, ID uuid.UUID) (*models.Customer, error)

func (*CustomersRepository) Save

func (r *CustomersRepository) Save(ctx context.Context, customer *models.Customer) (*models.Customer, error)

Jump to

Keyboard shortcuts

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