order

package
v0.0.0-...-1bf90d9 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: MIT Imports: 12 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 NewRepository

func NewRepository(db *pg.Client) *Repository

func (*Repository) Create

func (r *Repository) Create(ctx context.Context, newOrder ordermodels.NewOrder) (orderID int64, err error)

func (*Repository) GetByID

func (r *Repository) GetByID(ctx context.Context, orderID int64) (order ordermodels.Order, err error)

func (*Repository) SetStatus

func (r *Repository) SetStatus(ctx context.Context, orderID int64, status ordermodels.Status) (err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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