pets

package
v0.0.0-...-58bd1cf Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PetCatCreateJobHandler = handlers.NewJobHandler(newPetCatCreateJobController)
View Source
var PetClearJobHandler = handlers.NewJobHandler(newPetClearJobController)
View Source
var PetDogCreateJobHandler = handlers.NewJobHandler(newPetDogCreateJobController)
View Source
var PetResetJobChainHandler = handlers.NewJobChainHandler(newPetResetJobChainController)

Functions

func PetCreate

func PetCreate(c *xin.Context)

func PetCsvExport

func PetCsvExport(c *xin.Context)

func PetDeleteBatch

func PetDeleteBatch(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)

Types

type PetClearJobController

type PetClearJobController struct {
	handlers.JobController
}

func (*PetClearJobController) Index

func (pcjc *PetClearJobController) Index(c *xin.Context)

func (*PetClearJobController) Start

func (pcjc *PetClearJobController) Start(c *xin.Context)

type PetCreateJobController

type PetCreateJobController struct {
	handlers.JobController
	// contains filtered or unexported fields
}

func (*PetCreateJobController) Index

func (pdjc *PetCreateJobController) Index(c *xin.Context)

func (*PetCreateJobController) Start

func (pdjc *PetCreateJobController) Start(c *xin.Context)

type PetQueryArg

type PetQueryArg struct {
	argutil.QueryArg

	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"`
}

func (*PetQueryArg) AddWhere

func (pqa *PetQueryArg) AddWhere(sqb *sqlx.Builder)

func (*PetQueryArg) HasFilter

func (pqa *PetQueryArg) HasFilter() bool

func (*PetQueryArg) Normalize

func (pqa *PetQueryArg) Normalize(c *xin.Context)

type PetResetJobChainController

type PetResetJobChainController struct {
	handlers.JobChainController
}

func (*PetResetJobChainController) Index

func (prjcc *PetResetJobChainController) Index(c *xin.Context)

type PetUpdatesArg

type PetUpdatesArg struct {
	ID     string     `json:"id,omitempty" form:"id,strip"`
	Gender string     `json:"gender,omitempty" form:"gender,strip"`
	BornAt *time.Time `json:"born_at,omitempty" form:"born_at"`
	Origin string     `json:"origin,omitempty" form:"origin,strip"`
	Temper string     `json:"temper,omitempty" form:"temper,strip"`
	Habits *[]string  `json:"habits,omitempty" form:"habits,strip"`
}

func (*PetUpdatesArg) IsEmpty

func (pua *PetUpdatesArg) IsEmpty() bool

type PetWithFile

type PetWithFile struct {
	models.Pet
	File string `db:"-" json:"file" form:"file,strip"`
}

Jump to

Keyboard shortcuts

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