ordersrv

package
v0.0.0-...-6c91261 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrOrderNotFound       = errors.New("Заказ не найден")
	ErrOrderAmountNotEqual = errors.New("Неверная сумма заказа")
)

Functions

This section is empty.

Types

type OrderService

type OrderService interface {
	Create(ctx context.Context, userUUID string, params *pbv1.CreateOrderRequestParams) (*pbv1.Order, error)
	Checkout(ctx context.Context, orderUUID string, params *pbv1.CheckoutOrderRequestParams) (*pbv1.Order, error)
	GetByUUID(ctx context.Context, orderUUID string) (*pbv1.Order, error)
}

Jump to

Keyboard shortcuts

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