repository

package
v0.0.0-...-55179ed Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OrderRepositoryPostgresql

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

func NewOrderRepositoryPostgresql

func NewOrderRepositoryPostgresql(db *sql.DB) *OrderRepositoryPostgresql

func (*OrderRepositoryPostgresql) Create

func (pr *OrderRepositoryPostgresql) Create(order *entity.Order) error

func (*OrderRepositoryPostgresql) CreateOrderItem

func (or *OrderRepositoryPostgresql) CreateOrderItem(orderItem *entity.OrderItem) error

func (*OrderRepositoryPostgresql) DeleteOrderItem

func (or *OrderRepositoryPostgresql) DeleteOrderItem(orderItemId string) error

func (*OrderRepositoryPostgresql) FindAll

func (pr *OrderRepositoryPostgresql) FindAll(companyID string) ([]*entity.Order, error)

func (*OrderRepositoryPostgresql) FindAllOrderItemsByOrderId

func (or *OrderRepositoryPostgresql) FindAllOrderItemsByOrderId(orderID string) ([]*entity.OrderItem, error)

func (*OrderRepositoryPostgresql) FindByID

func (pr *OrderRepositoryPostgresql) FindByID(id string) (*entity.Order, error)

func (*OrderRepositoryPostgresql) UpdateStatus

func (pr *OrderRepositoryPostgresql) UpdateStatus(orderId string, status string) error

Jump to

Keyboard shortcuts

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