requests

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateUsedIngredientRequest

type CreateUsedIngredientRequest struct {
	Data resources.UsedIngredient
}

func NewCreateUsedIngredientRequest

func NewCreateUsedIngredientRequest(r *http.Request) (CreateUsedIngredientRequest, error)

type DeleteUsedIngredientRequest

type DeleteUsedIngredientRequest struct {
	UsedIngredientID int64 `url:"-"`
}

func NewDeleteUsedIngredientRequest

func NewDeleteUsedIngredientRequest(r *http.Request) (DeleteUsedIngredientRequest, error)

type GetUsedIngredientListRequest

type GetUsedIngredientListRequest struct {
	pgdb.OffsetPageParams
	FilterName         []string    `filter:"name"`
	FilterQuantity     []int64     `filter:"quantity"`
	FilterOrigin       []string    `filter:"origin"`
	FilterPrice        []float64   `filter:"price"`
	FilterDeletionDate []time.Time `filter:"deletion_date"`
	FilterReason       []string    `filter:"reason"`
}

func NewGetUsedIngredientListRequest

func NewGetUsedIngredientListRequest(r *http.Request) (GetUsedIngredientListRequest, error)

type GetUsedIngredientRequest

type GetUsedIngredientRequest struct {
	UsedIngredientID int64 `url:"-"`
}

func NewGetUsedIngredientRequest

func NewGetUsedIngredientRequest(r *http.Request) (GetUsedIngredientRequest, error)

type UpdateUsedIngredientRequest

type UpdateUsedIngredientRequest struct {
	UsedIngredientID int64 `url:"-" json:"-"`
	Data             resources.UsedIngredient
}

func NewUpdateUsedIngredientRequest

func NewUpdateUsedIngredientRequest(r *http.Request) (UpdateUsedIngredientRequest, error)

Jump to

Keyboard shortcuts

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