Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapToOrder ¶
func MapToOrder(command CreateOrderCommand) entity.Order
Types ¶
type CreateOrderCommand ¶
type CreateOrderCommand struct {
// shipment no of Order
ShipmentNumber int64 `json:"shipmentNumber" validate:"required"`
// cargo id of Order
CargoId int `json:"cargoId" validate:"required"`
// cargo id of Order
OrderLineItems []CreateOrderLineItemCommand `json:"lineItems" validate:"required"`
}
type GenericError ¶
type GenericError struct {
Message string `json:"message"`
}
GenericError is a generic error message returned by a server
type ValidationError ¶
type ValidationError struct {
Messages []string `json:"messages"`
}
ValidationError is a collection of validation error messages
Click to show internal directories.
Click to hide internal directories.