commands

package
v0.0.0-...-d67a65b Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UpdateProduct

type UpdateProduct struct {
	ProductID   uuid.UUID `validate:"required"`
	Name        string    `validate:"required,gte=0,lte=255"`
	Description string    `validate:"required,gte=0,lte=5000"`
	Price       float64   `validate:"required,gte=0"`
	UpdatedAt   time.Time `validate:"required"`
	Count       int32     `validate:"required,gt=0"`
	InventoryId int64     `validate:"required,gt=0"`
}

func NewUpdateProduct

func NewUpdateProduct(productID uuid.UUID, name string, description string, price float64, inventoryId int64, count int32) *UpdateProduct

type UpdateProductHandler

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

func NewUpdateProductHandler

func NewUpdateProductHandler(log logger.ILogger, rabbitmqPublisher rabbitmq.IPublisher,
	productRepository contracts.ProductRepository, ctx context.Context, grpcClient grpc.GrpcClient) *UpdateProductHandler

func (*UpdateProductHandler) Handle

Jump to

Keyboard shortcuts

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