requests

package
v1.0.9 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 CreateCafeRequest

type CreateCafeRequest struct {
	Data resources.Cafe
}

func NewCreateCafeRequest

func NewCreateCafeRequest(r *http.Request) (CreateCafeRequest, error)

type DeleteCafeRequest

type DeleteCafeRequest struct {
	CafeId int64 `url:"-"`
}

func NewDeleteCafeRequest

func NewDeleteCafeRequest(r *http.Request) (DeleteCafeRequest, error)

type GetCafeListRequest

type GetCafeListRequest struct {
	pgdb.OffsetPageParams
	FilterName       []string   `filter:"cafe_name"`
	FilterRatingTo   *[]float64 `filter:"rating_to"`
	FilterRatingFrom *[]float64 `filter:"rating_from"`
	FilterAddressId  []int64    `filter:"address_id"`
}

func NewGetCafeListRequest

func NewGetCafeListRequest(r *http.Request) (GetCafeListRequest, error)

type GetCafeRequest

type GetCafeRequest struct {
	CafeId int64 `url:"-"`
}

func NewGetCafeRequest

func NewGetCafeRequest(r *http.Request) (GetCafeRequest, error)

type UpdateCafeRequest

type UpdateCafeRequest struct {
	CafeId int64 `url:"-" json:"-"`
	Data   resources.Cafe
}

func NewUpdateCafeRequest

func NewUpdateCafeRequest(r *http.Request) (UpdateCafeRequest, error)

Jump to

Keyboard shortcuts

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