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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateAddressRequest

type CreateAddressRequest struct {
	Data resources.Address
}

func NewCreateAddressRequest

func NewCreateAddressRequest(r *http.Request) (CreateAddressRequest, error)

type DeleteAddressRequest

type DeleteAddressRequest struct {
	AddressID int64 `url:"-"`
}

func NewDeleteAddressRequest

func NewDeleteAddressRequest(r *http.Request) (DeleteAddressRequest, error)

type GetAddressListRequest

type GetAddressListRequest struct {
	pgdb.OffsetPageParams
	FilterBuildingNumber []int64  `filter:"building"`
	FilterStreet         []string `filter:"street"`
	FilterCity           []string `filter:"city"`
	FilterDistrict       []string `filter:"district"`
	FilterRegion         []string `filter:"region"`
	FilterPostalCode     []string `filter:"postal_code"`
}

func NewGetAddressListRequest

func NewGetAddressListRequest(r *http.Request) (GetAddressListRequest, error)

type GetAddressRequest

type GetAddressRequest struct {
	AddressID int64 `url:"-"`
}

func NewGetAddressRequest

func NewGetAddressRequest(r *http.Request) (GetAddressRequest, error)

type UpdateAddressRequest

type UpdateAddressRequest struct {
	AddressID int64 `url:"-" json:"-"`
	Data      resources.Address
}

func NewUpdateAddressRequest

func NewUpdateAddressRequest(r *http.Request) (UpdateAddressRequest, error)

Jump to

Keyboard shortcuts

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