query

package
v0.0.0-...-2068963 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OrderQuery

type OrderQuery interface {
	CreateOrder(c context.Context, tx pgx.Tx, order *pb.Order) (*pb.Order, error)
	GetOrderDetails(c context.Context, req *pb.GetOrderFilter) (*pb.GetOrderResponse, error)
	GetOrders(c context.Context, req *pb.GetOrdersRequest) (*pb.GetOrderResponse, error)
	UpdateOrder(c context.Context, tx pgx.Tx, order *pb.Order) (*pb.Order, error)
	SendOrder(c context.Context, tx pgx.Tx, req *pb.SendOrderRequest, status, paymentLink string) error
}

func NewOrderQueryImpl

func NewOrderQueryImpl(db *pgxpool.Pool) OrderQuery

type OrderQueryImpl

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

func (*OrderQueryImpl) CreateOrder

func (o *OrderQueryImpl) CreateOrder(c context.Context, tx pgx.Tx, req *pb.Order) (*pb.Order, error)

func (*OrderQueryImpl) GetOrderDetails

func (o *OrderQueryImpl) GetOrderDetails(c context.Context, fil *pb.GetOrderFilter) (*pb.GetOrderResponse, error)

func (*OrderQueryImpl) GetOrders

func (*OrderQueryImpl) SendOrder

func (o *OrderQueryImpl) SendOrder(c context.Context, tx pgx.Tx, req *pb.SendOrderRequest, status, paymentLink string) error

func (*OrderQueryImpl) UpdateOrder

func (o *OrderQueryImpl) UpdateOrder(c context.Context, tx pgx.Tx, order *pb.Order) (*pb.Order, error)

Jump to

Keyboard shortcuts

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