requests

package
v1.0.1 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_number"`
	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