dto

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: GPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComponentQuantity

type ComponentQuantity struct {
	ComponentId string  `json:"component_id"`
	Quantity    float64 `json:"quantity"`
}

type FinishOrderRequest

type FinishOrderRequest struct {
	Id string `json:"order_id"`
}

type GetComponentConsumeLogsRequest

type GetComponentConsumeLogsRequest struct {
	Name string `json:"name"`
}

type HttpComponent

type HttpComponent struct {
	Name     string  `json:"name"`
	Unit     string  `json:"unit"`
	Quantity float32 `json:"quantity"`
	Company  string  `json:"company"`
}

type MaterialEditRequest

type MaterialEditRequest struct {
	Material models.Material
}

type Order

type Order struct {
	models.Order `bson:",inline"`
	Ingredients  [][]OrderStartRequestIngredient `json:"ingredients"`
}

type OrderItem

type OrderItem struct {
	Name       string          `json:"name"`
	Components []HttpComponent `json:"components"`
}

type OrderRemoveStashRequest

type OrderRemoveStashRequest struct {
	OrderDisplayId string `json:"order_display_id"`
}

type OrderStartRequest

type OrderStartRequest struct {
	Id    string             `json:"order_id"`
	Items []models.OrderItem `json:"items"`
}

type OrderStartRequestIngredient

type OrderStartRequestIngredient struct {
	ComponentId string  `json:"component_id" bson:"component_id"`
	EntryId     string  `json:"entry_id" bson:"entry_id"`
	Name        string  `json:"name"`
	Quantity    float32 `json:"quantity"`
	Company     string  `json:"company"`
}

type OrderStashRequest

type OrderStashRequest struct {
	Order models.Order `json:"order"`
}

type OrderStashResponse

type OrderStashResponse struct {
	Order models.Order `json:"order"`
}

type RecipeAvailability

type RecipeAvailability struct {
	RecipeId              string             `json:"recipe_id"`
	Available             float64            `json:"available"`
	Ready                 float64            `json:"ready"`
	ComponentRequirements map[string]float64 `json:"component_requirements"`
}

type RequestComponentEntryAdd

type RequestComponentEntryAdd struct {
	ComponentId string                 `json:"component_id"`
	Entries     []models.MaterialEntry `json:"entries"`
}

Jump to

Keyboard shortcuts

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