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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateProduct

type CreateProduct 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"`
	InventoryId int64     `validate:"required,gt=0"`
	Count       int32     `validate:"required,gt=0"`
	CreatedAt   time.Time `validate:"required"`
}

func NewCreateProduct

func NewCreateProduct(name string, description string, price float64, inventoryId int64, count int32) *CreateProduct

type CreateProductHandler

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

func NewCreateProductHandler

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

func (*CreateProductHandler) Handle

Jump to

Keyboard shortcuts

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