service

package
v0.0.0-...-e1e387d Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OrderService

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

func (*OrderService) CreateOrder

func (s *OrderService) CreateOrder(ctx context.Context, authToken string, data *models.Order, fromCart bool) (*models.Order, error)

func (*OrderService) GetOrder

func (s *OrderService) GetOrder(ctx context.Context, authToken string, orderID int) (*models.Order, error)

func (*OrderService) GetUserOrders

func (s *OrderService) GetUserOrders(ctx context.Context, authToken string, limit int, offset int) (*models.PaginationResult[*models.Order], error)

func (*OrderService) UpdateOrderStatus

func (s *OrderService) UpdateOrderStatus(ctx context.Context, authToken string, orderID int, newStatus models.OrderStatus) error

Jump to

Keyboard shortcuts

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