dtos

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeOrderStatusDto

type ChangeOrderStatusDto struct {
	OrderId        uint   `json:"orderId"`
	ChangeToStatus string `json:"changeToStatus"`
}

type CreateOrderDto

type CreateOrderDto struct {
	CustomerId uint                 `json:"customerId" validate:"nonzero"`
	Products   []ProductInsideOrder `json:"products" validate:"nonzero"`
}

func (*CreateOrderDto) GetProductIds

func (o *CreateOrderDto) GetProductIds() []uint

type CreateProductDto

type CreateProductDto struct {
	Name        string  `json:"name" validate:"nonzero"`
	Price       float64 `json:"price" validate:"nonzero"`
	Description string  `json:"description" validate:"nonzero"`
	CategoryId  uint    `json:"categoryId" validate:"nonzero"`
}

type ProductInsideOrder

type ProductInsideOrder struct {
	Id          uint   `json:"id" validate:"nonzero"`
	Quantity    int    `json:"quantity" validate:"nonzero"`
	Observation string `json:"observation"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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