command

package
v0.0.0-...-0c44e78 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandHandler

type CommandHandler[C any] interface {
	Handle(ctx context.Context, cmd C) error
}

type CreatePurchase

type CreatePurchase struct {
	Order   *Order
	Payment *Payment
}

type Order

type Order struct {
	CustomerID uint64
	OrderItems *[]OrderItem
}

type OrderItem

type OrderItem struct {
	ID       uint64
	Price    uint64
	Quantity uint64
}

type Payment

type Payment struct {
	CurrencyCode string
	Amount       uint64
}

Jump to

Keyboard shortcuts

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