requests

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateMealRequest

type CreateMealRequest struct {
	Data resources.Meal
}

func NewCreateMealRequest

func NewCreateMealRequest(r *http.Request) (CreateMealRequest, error)

type DeleteMealRequest

type DeleteMealRequest struct {
	MealId int64 `url:"-"`
}

func NewDeleteMealRequest

func NewDeleteMealRequest(r *http.Request) (DeleteMealRequest, error)

type GetMealListRequest

type GetMealListRequest struct {
	pgdb.OffsetPageParams
	FilterMealName   []string  `filter:"meal_name"`
	FilterPriceFrom  []float64 `filter:"price_from"`
	FilterPriceTo    []float64 `filter:"price_to"`
	FilterAmount     []float64 `filter:"amount"`
	FilterCategoryId []int64   `filter:"category_id"`
}

func NewGetMealListRequest

func NewGetMealListRequest(r *http.Request) (GetMealListRequest, error)

type GetMealRequest

type GetMealRequest struct {
	MealId int64 `url:"-"`
}

func NewGetMealRequest

func NewGetMealRequest(r *http.Request) (GetMealRequest, error)

type UpdateMealRequest

type UpdateMealRequest struct {
	MealId int64 `url:"-" json:"-"`
	Data   resources.Meal
}

func NewUpdateMealRequest

func NewUpdateMealRequest(r *http.Request) (UpdateMealRequest, error)

Jump to

Keyboard shortcuts

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