demos

package
v0.0.0-...-438cbf1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PetCreate

func PetCreate(c *xin.Context)

func PetCsvExport

func PetCsvExport(c *xin.Context)

func PetDeletes

func PetDeletes(c *xin.Context)

func PetEdit

func PetEdit(c *xin.Context)

func PetIndex

func PetIndex(c *xin.Context)

func PetList

func PetList(c *xin.Context)

func PetNew

func PetNew(c *xin.Context)

func PetUpdate

func PetUpdate(c *xin.Context)

func PetUpdates

func PetUpdates(c *xin.Context)

func PetView

func PetView(c *xin.Context)

func TagsIndex

func TagsIndex(c *xin.Context)

func UploadsIndex

func UploadsIndex(c *xin.Context)

Types

type PetQuery

type PetQuery struct {
	ID        int64     `form:"id,strip" json:"id"`
	Name      string    `form:"name,strip" json:"name"`
	BornFrom  time.Time `form:"born_from,strip" json:"born_from"`
	BornTo    time.Time `form:"born_to,strip" json:"born_to"`
	Gender    []string  `form:"gender,strip" json:"gender"`
	Origin    []string  `form:"origin,strip" json:"origin"`
	Habits    []string  `form:"habits,strip" json:"habits"`
	Temper    []string  `form:"temper,strip" json:"temper"`
	AmountMin string    `form:"amount_min" json:"amount_min"`
	AmountMax string    `form:"amount_max" json:"amount_max"`
	PriceMin  string    `form:"price_min" json:"price_min"`
	PriceMax  string    `form:"price_max" json:"price_max"`
	ShopName  string    `form:"shop_name,strip" json:"shop_name"`

	args.Pager
	args.Sorter
}

func (*PetQuery) Normalize

func (pq *PetQuery) Normalize(columns []string, limits []int)

type PetUpdatesArg

type PetUpdatesArg struct {
	ID      string          `json:"id,omitempty" form:"id,strip"`
	Gender  string          `json:"gender" form:"gender,strip"`
	BornAt  time.Time       `json:"born_at" form:"born_at"`
	UbornAt bool            `json:"uborn_at" form:"uborn_at"`
	Origin  string          `json:"origin" form:"origin,strip"`
	Temper  string          `json:"temper" form:"temper,strip"`
	Habits  pqx.StringArray `json:"habits" form:"habits,strip"`
	Uhabits bool            `json:"uhabits" form:"uhabits"`
}

Jump to

Keyboard shortcuts

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